{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import scipy.io as sio\n",
    "import numpy as np\n",
    "import math"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "vi_dr_indi=pd.read_excel('data_raw/database.xlsx', sheet_name='Indications(vi-dr)')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "vi_dr_indi=vi_dr_indi[['VIRUS', 'DRUG']]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "no_v = len(vi_dr_indi['VIRUS'].unique() )\n",
    "no_d= len(vi_dr_indi['DRUG'].unique() )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "121"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "no_v\n",
    "no_d"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### creating interaction matrix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "vi_dr_matrix=vi_dr_indi.groupby(['VIRUS', 'DRUG']).size().unstack().fillna(0) #https://www.drawingfromdata.com/making-a-pairwise-distance-matrix-with-pandas"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Abacavir', 'Acyclovir', 'Adefovir', 'Adefovir dipivoxil', 'Amantadine',\n",
       "       'Amprenavir', 'Asunaprevir', 'Atazanavir', 'Baloxavir marboxil',\n",
       "       'Beclabuvir',\n",
       "       ...\n",
       "       'Valaciclovir', 'Valganciclovir', 'Valomaciclovir', 'Vaniprevir',\n",
       "       'Velpatasvir', 'Vidarabine', 'Voxilaprevir', 'Zalcitabine', 'Zanamivir',\n",
       "       'Zidovudine'],\n",
       "      dtype='object', name='DRUG', length=121)"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "vi_dr_matrix=vi_dr_matrix.sort_index(axis=1)\n",
    "vi_dr_matrix.columns"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "vi_dr_matrix.to_csv('data_processed/virus_drug_association.csv', header=False, index=False)\n",
    "\n",
    "sio.savemat('data_processed/virus_drug_association.mat',{'mat':vi_dr_matrix.values , 'vi':vi_dr_matrix.index.values, 'dr':vi_dr_matrix.columns.values})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['Chikungunya virus', 'Coxsackievirus B5', 'Ebola virus',\n",
       "       'Enterovirus D', 'Enterovirus J', 'HBV', 'HCV', 'HHV-1', 'HHV-2',\n",
       "       'HHV-3', 'HHV-4', 'HHV-5', 'HHV-6', 'HHV-8', 'HIV-1', 'HIV-2',\n",
       "       'HPIV-2', 'HPIV-3', 'HPV', 'HRV-A', 'HRV-B', 'HTLV-1',\n",
       "       'Hantaan orthohantavirus', 'Hendra virus', 'Human adenovirus',\n",
       "       'Human polyomavirus', 'Influenza A virus', 'Influenza B virus',\n",
       "       'Influenza C virus', 'Lassa mammarenavirus', 'MCV', 'MERS-CoV',\n",
       "       'Nipah virus', 'RSV', 'SARS-CoV', 'SARS-CoV-2',\n",
       "       'SARS-CoV-2: april', 'SARS-CoV-2: feb', 'SARS-CoV-2: june', 'VV',\n",
       "       'Variola virus', 'Zika virus'], dtype=object)"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "vi_dr_matrix.index.values.T"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Abacavir', 'Acyclovir', 'Adefovir', 'Adefovir dipivoxil', 'Amantadine',\n",
       "       'Amprenavir', 'Asunaprevir', 'Atazanavir', 'Baloxavir marboxil',\n",
       "       'Beclabuvir',\n",
       "       ...\n",
       "       'Valaciclovir', 'Valganciclovir', 'Valomaciclovir', 'Vaniprevir',\n",
       "       'Velpatasvir', 'Vidarabine', 'Voxilaprevir', 'Zalcitabine', 'Zanamivir',\n",
       "       'Zidovudine'],\n",
       "      dtype='object', name='DRUG', length=121)"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "vi_dr_matrix.columns"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Creating drug similarity matrix\n",
    "* 1. get KEGG IDs for the drugs\n",
    "* 2. add KEGG IDs manually for the drugs which dont have KEGG IDs in mapping file (drug links.csv) obtained from DrugBank\n",
    "* 3. use rest API to get SIMCOMP score: https://www.genome.jp/tools/gn_tools_api.html   to get SIMCOMP similarities using KEGG IDs\n",
    "* 4. convert similarity score fetched from API to matrix"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 1. get KEGG IDs for the drugs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "#FETCH KEGG IDS AND WRITE TO NEW UPDATES DRUGS FILE with_KEGG_IDs\n",
    "\n",
    "#drugs=pd.read_excel('data_raw/database.xlsx', sheet_name='Drug_info')\n",
    "#mapping_file=pd.read_csv('data_raw/drug links.csv') #obtained from https://www.drugbank.ca/releases/latest#external-links  : has wrong drug linking for oseltamivir..corrected\n",
    "\n",
    "#drugs_with_KEGG_IDs = pd.merge(mapping_file, drugs, left_on='DrugBank ID',right_on='DRUGBANK ID', how='right')\n",
    "#drugs_with_KEGG_IDs=drugs_with_KEGG_IDs[['DRUGBANK ID','DrugBank ID','Name','KEGG Compound ID', 'KEGG Drug ID']].sort_values('DRUGBANK ID')\n",
    "#drugs_with_KEGG_IDs.to_csv('data_processed/drugs_withKEGGIDs.csv', index=False)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 2. Add KEGG IDs of drusg with missing IDs manually"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 3. use rest API to get SIMCOMP score:"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "#read\n",
    "drugs_KEGGSupdated=pd.read_excel('data_raw/database.xlsx', sheet_name='Drug_info')#118 drugs (KEGG IDs of 3 drugs missing)\n",
    "drugs_with_KEGG_IDs=drugs_KEGGSupdated[['DRUGBANK ID','DrugBank ID','Name','KEGG Compound ID', 'KEGG Drug ID']].sort_values(by=['KEGG Compound ID','KEGG Drug ID'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "\"drugs_with_KEGG_IDs['KEGG Combined ID']=drugs_with_KEGG_IDs['KEGG Compound ID'].fillna('') + drugs_with_KEGG_IDs['KEGG Drug ID'].fillna('')\\ndrugs_with_KEGG_IDs['KEGG Combined ID'].replace('', np.nan, inplace=True)\\ndr_list2a=drugs_with_KEGG_IDs.dropna(subset = ['KEGG Combined ID']) #114 drugs\""
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#all drugs\n",
    "dr_list1=drugs_with_KEGG_IDs['Name'].values.tolist() #117 drugs\n",
    "\n",
    "#drugs having KEGG ID\n",
    "'''drugs_with_KEGG_IDs['KEGG Combined ID']=drugs_with_KEGG_IDs['KEGG Compound ID'].fillna('') + drugs_with_KEGG_IDs['KEGG Drug ID'].fillna('')\n",
    "drugs_with_KEGG_IDs['KEGG Combined ID'].replace('', np.nan, inplace=True)\n",
    "dr_list2a=drugs_with_KEGG_IDs.dropna(subset = ['KEGG Combined ID']) #114 drugs'''"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "C01588+C05682+C06456+C06810+C06818+C06909+C06941+C06953+C07043+C07051+C07065+C07184+C07195+C07207+C07210+C07236+C07240+C07257+C07263+C07312+C07417+C07624+C07625+C08086+C08088+C08092+C08095+C09147+C10874+C11222+C11277+C12599+C12871+C13480+C15643+C17407+C21598+D00317+D00333+D00342+D00391+D00423+D00429+D00745+D01784+D01982+D01995+D02495+D02496+D02497+D02499+D02500+D02736+D02737+D02744+D02747+D02748+D02768+D03305+D03537+D03656+D03829+D03884+D03956+D03981+D04008+D04112+D04552+D04554+D04859+D05528+D06275+D06651+D06670+D06675+D06676+D06677+D07199+D07249+D07250+D07471+D08605+D08876+D08997+D09012+D09390+D09410+D09537+D09575+D09720+D09881+D09971+D09987+D10066+D10081+D10093+D10105+D10366+D10428+D10442+D10462+D10558+D10580+D10582+D10610+D10624+D10625+D10639+D10745+D10801+D10806+D10814+D10816+D10899+D10909+D11021+D11399+D11472+\n"
     ]
    }
   ],
   "source": [
    "cmnd=\"\"\n",
    "dr_list2=[] # 101 drugs (13 drugs had too low SIMCOMP score with all other 114 drugs)\n",
    "for i in range(len(drugs_with_KEGG_IDs.index)):\n",
    "    nonans=drugs_with_KEGG_IDs.iloc[i].isnull().sum()  \n",
    "    \n",
    "    if nonans==1:\n",
    "               \n",
    "        if pd.isnull(drugs_with_KEGG_IDs.iloc[i, 3]):\n",
    "            #print(drugs_with_KEGG_IDs.iloc[i, 4])\n",
    "            cmnd=cmnd+ drugs_with_KEGG_IDs.iloc[i, 4]\n",
    "            \n",
    "        else:\n",
    "            #print(drugs_with_KEGG_IDs.iloc[i, 3])\n",
    "            cmnd=cmnd+ drugs_with_KEGG_IDs.iloc[i, 3]\n",
    "        dr_list2.append(drugs_with_KEGG_IDs.iloc[i, 2])\n",
    "        cmnd=cmnd+ '+'\n",
    "    \n",
    "    elif nonans==0:\n",
    "        \n",
    "        #print(drugs_with_KEGG_IDs.iloc[i, 3])\n",
    "        cmnd=cmnd+ drugs_with_KEGG_IDs.iloc[i, 3]\n",
    "        dr_list2.append(drugs_with_KEGG_IDs.iloc[i, 2])\n",
    "        cmnd=cmnd+ '+'  \n",
    "    \n",
    "print(cmnd) #lists all drug KEGG IDs (114) except those which have both NANs in KEGG drug and compund ID\n",
    "#len(dr_list2)#same as drug_list2a (drugs having KEGG ID)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Peginterferon alfacon-1', 'Triazavirin', 'UC-781'}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "set(dr_list1)-set(dr_list2)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Copy paste the following command"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "#http://rest.genome.jp/simcomp2/C01588+C05682+C06456+C06810+C06818+C06909+C06941+C06953+C07043+C07051+C07065+C07184+C07195+C07207+C07210+C07236+C07240+C07257+C07263+C07312+C07417+C07624+C07625+C08086+C08088+C08092+C08095+C09147+C10874+C11222+C11277+C12599+C12871+C13480+C15643+C17407+C21598+D00317+D00333+D00342+D00391+D00423+D00429+D00745+D01784+D01982+D01995+D02495+D02496+D02497+D02499+D02500+D02736+D02737+D02744+D02747+D02748+D02768+D03305+D03537+D03656+D03829+D03884+D03956+D03981+D04008+D04112+D04552+D04554+D04859+D05528+D06275+D06651+D06670+D06675+D06676+D06677+D07199+D07249+D07250+D07471+D08605+D08876+D08997+D09012+D09390+D09410+D09537+D09575+D09720+D09881+D09971+D09987+D10066+D10081+D10093+D10105+D10366+D10428+D10442+D10462+D10558+D10580+D10582+D10610+D10624+D10625+D10639+D10745+D10801+D10806+D10814+D10816+D10899+D10909+D11021+D11399+D11472/C01588+C05682+C06456+C06810+C06818+C06909+C06941+C06953+C07043+C07051+C07065+C07184+C07195+C07207+C07210+C07236+C07240+C07257+C07263+C07312+C07417+C07624+C07625+C08086+C08088+C08092+C08095+C09147+C10874+C11222+C11277+C12599+C12871+C13480+C15643+C17407+C21598+D00317+D00333+D00342+D00391+D00423+D00429+D00745+D01784+D01982+D01995+D02495+D02496+D02497+D02499+D02500+D02736+D02737+D02744+D02747+D02748+D02768+D03305+D03537+D03656+D03829+D03884+D03956+D03981+D04008+D04112+D04552+D04554+D04859+D05528+D06275+D06651+D06670+D06675+D06676+D06677+D07199+D07249+D07250+D07471+D08605+D08876+D08997+D09012+D09390+D09410+D09537+D09575+D09720+D09881+D09971+D09987+D10066+D10081+D10093+D10105+D10366+D10428+D10442+D10462+D10558+D10580+D10582+D10610+D10624+D10625+D10639+D10745+D10801+D10806+D10814+D10816+D10899+D10909+D11021+D11399+D11472/cutoff=0.01"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 4. convert similarity score fetched from API to matrix (after mapping KEGG drug/compund IDs to drug names and adding missed drugs)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "drug_sim_raw=pd.read_excel('data_raw/database.xlsx', sheet_name='drug_sim_raw')[['DRUG1','DRUG2','SIMCOMP']]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "105"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(drug_sim_raw['DRUG1'].unique()) #121 total drugs, no KEGG IDS hence no score calculation for 3 drugs, too low SIMCOMP score for 13 drugs..left with 103 drugs"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "#mapping KEGG IDs to drugbank names(some drugbank name missing )\n",
    "mapping=drugs_with_KEGG_IDs[['KEGG Compound ID', 'Name']].rename(columns={'KEGG Compound ID':'KEGG Drug ID'}).append(drugs_with_KEGG_IDs[['KEGG Drug ID', 'Name']])\n",
    "dic_dr=dict(mapping.values.tolist())\n",
    "drug_sim_raw=drug_sim_raw.replace(dic_dr) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [],
   "source": [
    "#add 13 drugs having SIMCOMP<cutoff\n",
    "dr_list3=drug_sim_raw['DRUG1'].unique().tolist() #103 drugs\n",
    "dr_list_missing = (list(set(dr_list1)-set(dr_list3))) #13 missed drugs+3 drugs with no KEGG ID"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "for missed_drug in dr_list_missing:\n",
    "    drug_sim_raw=drug_sim_raw.append({'DRUG1':missed_drug,'DRUG2':missed_drug,'SIMCOMP':1},ignore_index=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "#convert to matrix\n",
    "drug_sim_matrix =drug_sim_raw.pivot_table(columns='DRUG1', index='DRUG2', values='SIMCOMP')#.reset_index()\n",
    "drug_sim_matrix=drug_sim_matrix.fillna(0) #replace NANs (SIMCOP SCORE less than cuoff; eg: http://rest.genome.jp/simcomp2/C06818+D08876+D09390/C06818+D08876+D09390/cutoff=0.01) with 0"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>DRUG1</th>\n",
       "      <th>Abacavir</th>\n",
       "      <th>Acyclovir</th>\n",
       "      <th>Adefovir</th>\n",
       "      <th>Adefovir dipivoxil</th>\n",
       "      <th>Amantadine</th>\n",
       "      <th>Amprenavir</th>\n",
       "      <th>Asunaprevir</th>\n",
       "      <th>Atazanavir</th>\n",
       "      <th>Baloxavir marboxil</th>\n",
       "      <th>Beclabuvir</th>\n",
       "      <th>...</th>\n",
       "      <th>Valaciclovir</th>\n",
       "      <th>Valganciclovir</th>\n",
       "      <th>Valomaciclovir</th>\n",
       "      <th>Vaniprevir</th>\n",
       "      <th>Velpatasvir</th>\n",
       "      <th>Vidarabine</th>\n",
       "      <th>Voxilaprevir</th>\n",
       "      <th>Zalcitabine</th>\n",
       "      <th>Zanamivir</th>\n",
       "      <th>Zidovudine</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>DRUG2</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Abacavir</th>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.501832</td>\n",
       "      <td>0.414474</td>\n",
       "      <td>0.414474</td>\n",
       "      <td>0.156250</td>\n",
       "      <td>0.051724</td>\n",
       "      <td>0.151603</td>\n",
       "      <td>0.053352</td>\n",
       "      <td>0.095238</td>\n",
       "      <td>0.120690</td>\n",
       "      <td>...</td>\n",
       "      <td>0.325967</td>\n",
       "      <td>0.412429</td>\n",
       "      <td>0.287313</td>\n",
       "      <td>0.142061</td>\n",
       "      <td>0.181486</td>\n",
       "      <td>0.525424</td>\n",
       "      <td>0.129235</td>\n",
       "      <td>0.324503</td>\n",
       "      <td>0.195929</td>\n",
       "      <td>0.246459</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Acyclovir</th>\n",
       "      <td>0.443662</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.551724</td>\n",
       "      <td>0.551724</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.018868</td>\n",
       "      <td>0.043478</td>\n",
       "      <td>0.059002</td>\n",
       "      <td>0.127273</td>\n",
       "      <td>0.069277</td>\n",
       "      <td>...</td>\n",
       "      <td>0.694215</td>\n",
       "      <td>0.530249</td>\n",
       "      <td>0.260163</td>\n",
       "      <td>0.027397</td>\n",
       "      <td>0.109741</td>\n",
       "      <td>0.617021</td>\n",
       "      <td>0.062740</td>\n",
       "      <td>0.416309</td>\n",
       "      <td>0.075269</td>\n",
       "      <td>0.302817</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Adefovir</th>\n",
       "      <td>0.414474</td>\n",
       "      <td>0.551724</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.052632</td>\n",
       "      <td>0.057143</td>\n",
       "      <td>0.057269</td>\n",
       "      <td>0.103448</td>\n",
       "      <td>0.079882</td>\n",
       "      <td>...</td>\n",
       "      <td>0.423841</td>\n",
       "      <td>0.315789</td>\n",
       "      <td>0.223709</td>\n",
       "      <td>0.026667</td>\n",
       "      <td>0.116505</td>\n",
       "      <td>0.520913</td>\n",
       "      <td>0.059850</td>\n",
       "      <td>0.236749</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.171171</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Adefovir dipivoxil</th>\n",
       "      <td>0.414474</td>\n",
       "      <td>0.551724</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.052632</td>\n",
       "      <td>0.057143</td>\n",
       "      <td>0.057269</td>\n",
       "      <td>0.103448</td>\n",
       "      <td>0.079882</td>\n",
       "      <td>...</td>\n",
       "      <td>0.423841</td>\n",
       "      <td>0.315789</td>\n",
       "      <td>0.223709</td>\n",
       "      <td>0.026667</td>\n",
       "      <td>0.116505</td>\n",
       "      <td>0.520913</td>\n",
       "      <td>0.059850</td>\n",
       "      <td>0.236749</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.171171</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Amantadine</th>\n",
       "      <td>0.156250</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.061571</td>\n",
       "      <td>0.127695</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.017544</td>\n",
       "      <td>0.116667</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.092308</td>\n",
       "      <td>0.095541</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.091160</td>\n",
       "      <td>0.102662</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.122449</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Amprenavir</th>\n",
       "      <td>0.051724</td>\n",
       "      <td>0.018868</td>\n",
       "      <td>0.052632</td>\n",
       "      <td>0.052632</td>\n",
       "      <td>0.061571</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.262003</td>\n",
       "      <td>0.339286</td>\n",
       "      <td>0.257669</td>\n",
       "      <td>0.287129</td>\n",
       "      <td>...</td>\n",
       "      <td>0.205534</td>\n",
       "      <td>0.181989</td>\n",
       "      <td>0.131034</td>\n",
       "      <td>0.271754</td>\n",
       "      <td>0.251422</td>\n",
       "      <td>0.050725</td>\n",
       "      <td>0.185270</td>\n",
       "      <td>0.142241</td>\n",
       "      <td>0.151631</td>\n",
       "      <td>0.122047</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Asunaprevir</th>\n",
       "      <td>0.133429</td>\n",
       "      <td>0.043478</td>\n",
       "      <td>0.057143</td>\n",
       "      <td>0.057143</td>\n",
       "      <td>0.102107</td>\n",
       "      <td>0.248304</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.334981</td>\n",
       "      <td>0.234568</td>\n",
       "      <td>0.276347</td>\n",
       "      <td>...</td>\n",
       "      <td>0.094183</td>\n",
       "      <td>0.091644</td>\n",
       "      <td>0.072961</td>\n",
       "      <td>0.529093</td>\n",
       "      <td>0.318229</td>\n",
       "      <td>0.055556</td>\n",
       "      <td>0.504975</td>\n",
       "      <td>0.092308</td>\n",
       "      <td>0.103253</td>\n",
       "      <td>0.121076</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Atazanavir</th>\n",
       "      <td>0.053352</td>\n",
       "      <td>0.059002</td>\n",
       "      <td>0.057269</td>\n",
       "      <td>0.057269</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.339286</td>\n",
       "      <td>0.365360</td>\n",
       "      <td>0.927273</td>\n",
       "      <td>0.250000</td>\n",
       "      <td>0.264775</td>\n",
       "      <td>...</td>\n",
       "      <td>0.127379</td>\n",
       "      <td>0.109551</td>\n",
       "      <td>0.139535</td>\n",
       "      <td>0.264237</td>\n",
       "      <td>0.407821</td>\n",
       "      <td>0.055635</td>\n",
       "      <td>0.307692</td>\n",
       "      <td>0.059908</td>\n",
       "      <td>0.098266</td>\n",
       "      <td>0.067251</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Baloxavir marboxil</th>\n",
       "      <td>0.095238</td>\n",
       "      <td>0.127273</td>\n",
       "      <td>0.103448</td>\n",
       "      <td>0.103448</td>\n",
       "      <td>0.017544</td>\n",
       "      <td>0.253823</td>\n",
       "      <td>0.234568</td>\n",
       "      <td>0.235813</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.253165</td>\n",
       "      <td>...</td>\n",
       "      <td>0.131148</td>\n",
       "      <td>0.126984</td>\n",
       "      <td>0.097561</td>\n",
       "      <td>0.194896</td>\n",
       "      <td>0.305310</td>\n",
       "      <td>0.064516</td>\n",
       "      <td>0.211790</td>\n",
       "      <td>0.144465</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.132404</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Beclabuvir</th>\n",
       "      <td>0.120690</td>\n",
       "      <td>0.069277</td>\n",
       "      <td>0.079882</td>\n",
       "      <td>0.079882</td>\n",
       "      <td>0.116667</td>\n",
       "      <td>0.287129</td>\n",
       "      <td>0.267442</td>\n",
       "      <td>0.206313</td>\n",
       "      <td>0.267606</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.062670</td>\n",
       "      <td>0.061008</td>\n",
       "      <td>0.086718</td>\n",
       "      <td>0.306884</td>\n",
       "      <td>0.295918</td>\n",
       "      <td>0.124438</td>\n",
       "      <td>0.337793</td>\n",
       "      <td>0.127214</td>\n",
       "      <td>0.037736</td>\n",
       "      <td>0.126332</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Bictegravir</th>\n",
       "      <td>0.151631</td>\n",
       "      <td>0.125265</td>\n",
       "      <td>0.160338</td>\n",
       "      <td>0.160338</td>\n",
       "      <td>0.113636</td>\n",
       "      <td>0.171750</td>\n",
       "      <td>0.294452</td>\n",
       "      <td>0.135204</td>\n",
       "      <td>0.343284</td>\n",
       "      <td>0.296830</td>\n",
       "      <td>...</td>\n",
       "      <td>0.109057</td>\n",
       "      <td>0.105169</td>\n",
       "      <td>0.091644</td>\n",
       "      <td>0.298343</td>\n",
       "      <td>0.230248</td>\n",
       "      <td>0.177686</td>\n",
       "      <td>0.246944</td>\n",
       "      <td>0.179138</td>\n",
       "      <td>0.199187</td>\n",
       "      <td>0.258427</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Boceprevir</th>\n",
       "      <td>0.143376</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.135371</td>\n",
       "      <td>0.149773</td>\n",
       "      <td>0.340942</td>\n",
       "      <td>0.350954</td>\n",
       "      <td>0.103811</td>\n",
       "      <td>0.143911</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.041667</td>\n",
       "      <td>0.096606</td>\n",
       "      <td>0.296791</td>\n",
       "      <td>0.245829</td>\n",
       "      <td>0.052632</td>\n",
       "      <td>0.301115</td>\n",
       "      <td>0.076321</td>\n",
       "      <td>0.154562</td>\n",
       "      <td>0.046099</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Brivudine</th>\n",
       "      <td>0.246459</td>\n",
       "      <td>0.302817</td>\n",
       "      <td>0.171171</td>\n",
       "      <td>0.171171</td>\n",
       "      <td>0.122449</td>\n",
       "      <td>0.096154</td>\n",
       "      <td>0.121076</td>\n",
       "      <td>0.079882</td>\n",
       "      <td>0.096121</td>\n",
       "      <td>0.140216</td>\n",
       "      <td>...</td>\n",
       "      <td>0.151832</td>\n",
       "      <td>0.329480</td>\n",
       "      <td>0.169065</td>\n",
       "      <td>0.087866</td>\n",
       "      <td>0.090270</td>\n",
       "      <td>0.453901</td>\n",
       "      <td>0.101152</td>\n",
       "      <td>0.690141</td>\n",
       "      <td>0.119792</td>\n",
       "      <td>0.724138</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Calanolide A</th>\n",
       "      <td>0.134454</td>\n",
       "      <td>0.087963</td>\n",
       "      <td>0.065217</td>\n",
       "      <td>0.065217</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.124161</td>\n",
       "      <td>0.092545</td>\n",
       "      <td>0.164095</td>\n",
       "      <td>0.188590</td>\n",
       "      <td>0.201717</td>\n",
       "      <td>...</td>\n",
       "      <td>0.075697</td>\n",
       "      <td>0.052632</td>\n",
       "      <td>0.106195</td>\n",
       "      <td>0.156373</td>\n",
       "      <td>0.105150</td>\n",
       "      <td>0.177829</td>\n",
       "      <td>0.197007</td>\n",
       "      <td>0.150000</td>\n",
       "      <td>0.159737</td>\n",
       "      <td>0.176471</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Carmofur</th>\n",
       "      <td>0.126005</td>\n",
       "      <td>0.277372</td>\n",
       "      <td>0.152648</td>\n",
       "      <td>0.152648</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.031895</td>\n",
       "      <td>0.057971</td>\n",
       "      <td>0.181364</td>\n",
       "      <td>0.086207</td>\n",
       "      <td>0.090909</td>\n",
       "      <td>...</td>\n",
       "      <td>0.220930</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.206897</td>\n",
       "      <td>0.125926</td>\n",
       "      <td>0.068075</td>\n",
       "      <td>0.164179</td>\n",
       "      <td>0.127517</td>\n",
       "      <td>0.328125</td>\n",
       "      <td>0.178161</td>\n",
       "      <td>0.338028</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Chloroquine</th>\n",
       "      <td>0.192893</td>\n",
       "      <td>0.139601</td>\n",
       "      <td>0.186441</td>\n",
       "      <td>0.186441</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.295896</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.235772</td>\n",
       "      <td>0.146712</td>\n",
       "      <td>0.130690</td>\n",
       "      <td>...</td>\n",
       "      <td>0.143552</td>\n",
       "      <td>0.134259</td>\n",
       "      <td>0.131448</td>\n",
       "      <td>0.091644</td>\n",
       "      <td>0.128085</td>\n",
       "      <td>0.122449</td>\n",
       "      <td>0.135204</td>\n",
       "      <td>0.114286</td>\n",
       "      <td>0.043084</td>\n",
       "      <td>0.113990</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Cidofovir</th>\n",
       "      <td>0.228070</td>\n",
       "      <td>0.296296</td>\n",
       "      <td>0.528926</td>\n",
       "      <td>0.528926</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.175214</td>\n",
       "      <td>0.057971</td>\n",
       "      <td>0.088957</td>\n",
       "      <td>0.101399</td>\n",
       "      <td>0.068249</td>\n",
       "      <td>...</td>\n",
       "      <td>0.200000</td>\n",
       "      <td>0.294118</td>\n",
       "      <td>0.162362</td>\n",
       "      <td>0.027027</td>\n",
       "      <td>0.100363</td>\n",
       "      <td>0.282895</td>\n",
       "      <td>0.050000</td>\n",
       "      <td>0.524664</td>\n",
       "      <td>0.102151</td>\n",
       "      <td>0.338028</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Clevudine</th>\n",
       "      <td>0.250000</td>\n",
       "      <td>0.313869</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.031308</td>\n",
       "      <td>0.039326</td>\n",
       "      <td>0.068249</td>\n",
       "      <td>0.066667</td>\n",
       "      <td>0.114504</td>\n",
       "      <td>...</td>\n",
       "      <td>0.155914</td>\n",
       "      <td>0.339286</td>\n",
       "      <td>0.172161</td>\n",
       "      <td>0.078431</td>\n",
       "      <td>0.091340</td>\n",
       "      <td>0.459854</td>\n",
       "      <td>0.096774</td>\n",
       "      <td>0.699029</td>\n",
       "      <td>0.129032</td>\n",
       "      <td>0.748879</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Cobicistat</th>\n",
       "      <td>0.063554</td>\n",
       "      <td>0.083815</td>\n",
       "      <td>0.107914</td>\n",
       "      <td>0.107914</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.372832</td>\n",
       "      <td>0.289954</td>\n",
       "      <td>0.363636</td>\n",
       "      <td>0.284289</td>\n",
       "      <td>0.271283</td>\n",
       "      <td>...</td>\n",
       "      <td>0.134163</td>\n",
       "      <td>0.149111</td>\n",
       "      <td>0.166478</td>\n",
       "      <td>0.149653</td>\n",
       "      <td>0.376050</td>\n",
       "      <td>0.112676</td>\n",
       "      <td>0.177588</td>\n",
       "      <td>0.057143</td>\n",
       "      <td>0.139241</td>\n",
       "      <td>0.037234</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Daclatasvir</th>\n",
       "      <td>0.169014</td>\n",
       "      <td>0.116006</td>\n",
       "      <td>0.117479</td>\n",
       "      <td>0.117479</td>\n",
       "      <td>0.077844</td>\n",
       "      <td>0.354020</td>\n",
       "      <td>0.363636</td>\n",
       "      <td>0.532148</td>\n",
       "      <td>0.308176</td>\n",
       "      <td>0.303345</td>\n",
       "      <td>...</td>\n",
       "      <td>0.215227</td>\n",
       "      <td>0.209104</td>\n",
       "      <td>0.203704</td>\n",
       "      <td>0.206186</td>\n",
       "      <td>0.664565</td>\n",
       "      <td>0.151079</td>\n",
       "      <td>0.185958</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.096257</td>\n",
       "      <td>0.118980</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Darunavir</th>\n",
       "      <td>0.065574</td>\n",
       "      <td>0.017544</td>\n",
       "      <td>0.048951</td>\n",
       "      <td>0.048951</td>\n",
       "      <td>0.073559</td>\n",
       "      <td>0.813953</td>\n",
       "      <td>0.264822</td>\n",
       "      <td>0.320225</td>\n",
       "      <td>0.225071</td>\n",
       "      <td>0.273458</td>\n",
       "      <td>...</td>\n",
       "      <td>0.152482</td>\n",
       "      <td>0.169284</td>\n",
       "      <td>0.124183</td>\n",
       "      <td>0.223733</td>\n",
       "      <td>0.278027</td>\n",
       "      <td>0.156716</td>\n",
       "      <td>0.292271</td>\n",
       "      <td>0.117647</td>\n",
       "      <td>0.118881</td>\n",
       "      <td>0.123389</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Dasabuvir</th>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Delavirdine</th>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.147903</td>\n",
       "      <td>0.093117</td>\n",
       "      <td>0.093117</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.250000</td>\n",
       "      <td>0.293103</td>\n",
       "      <td>0.195652</td>\n",
       "      <td>0.240310</td>\n",
       "      <td>0.282421</td>\n",
       "      <td>...</td>\n",
       "      <td>0.152344</td>\n",
       "      <td>0.146617</td>\n",
       "      <td>0.108033</td>\n",
       "      <td>0.261872</td>\n",
       "      <td>0.212121</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.272040</td>\n",
       "      <td>0.148649</td>\n",
       "      <td>0.137255</td>\n",
       "      <td>0.095618</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Dexamethasone</th>\n",
       "      <td>0.122449</td>\n",
       "      <td>0.057269</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.202186</td>\n",
       "      <td>0.044547</td>\n",
       "      <td>0.137566</td>\n",
       "      <td>0.057935</td>\n",
       "      <td>0.112738</td>\n",
       "      <td>0.216023</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.081594</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.201080</td>\n",
       "      <td>0.101695</td>\n",
       "      <td>0.097046</td>\n",
       "      <td>0.197531</td>\n",
       "      <td>0.087963</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.085106</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Didanosine</th>\n",
       "      <td>0.457627</td>\n",
       "      <td>0.764706</td>\n",
       "      <td>0.444867</td>\n",
       "      <td>0.444867</td>\n",
       "      <td>0.092150</td>\n",
       "      <td>0.186441</td>\n",
       "      <td>0.088235</td>\n",
       "      <td>0.057269</td>\n",
       "      <td>0.157324</td>\n",
       "      <td>0.117917</td>\n",
       "      <td>...</td>\n",
       "      <td>0.508772</td>\n",
       "      <td>0.475410</td>\n",
       "      <td>0.262327</td>\n",
       "      <td>0.106322</td>\n",
       "      <td>0.128834</td>\n",
       "      <td>0.793722</td>\n",
       "      <td>0.125828</td>\n",
       "      <td>0.569507</td>\n",
       "      <td>0.120000</td>\n",
       "      <td>0.494253</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Docosanol</th>\n",
       "      <td>0.130221</td>\n",
       "      <td>0.054054</td>\n",
       "      <td>0.025000</td>\n",
       "      <td>0.025000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.022222</td>\n",
       "      <td>0.064302</td>\n",
       "      <td>0.440860</td>\n",
       "      <td>0.047120</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.119792</td>\n",
       "      <td>0.042654</td>\n",
       "      <td>0.137725</td>\n",
       "      <td>0.212938</td>\n",
       "      <td>0.122995</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Dolutegravir</th>\n",
       "      <td>0.160896</td>\n",
       "      <td>0.133787</td>\n",
       "      <td>0.171171</td>\n",
       "      <td>0.171171</td>\n",
       "      <td>0.090047</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.234222</td>\n",
       "      <td>0.125654</td>\n",
       "      <td>0.358885</td>\n",
       "      <td>0.312217</td>\n",
       "      <td>...</td>\n",
       "      <td>0.115460</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.095506</td>\n",
       "      <td>0.228070</td>\n",
       "      <td>0.251476</td>\n",
       "      <td>0.166307</td>\n",
       "      <td>0.228288</td>\n",
       "      <td>0.163895</td>\n",
       "      <td>0.214751</td>\n",
       "      <td>0.221198</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Doravirine</th>\n",
       "      <td>0.141079</td>\n",
       "      <td>0.194030</td>\n",
       "      <td>0.131222</td>\n",
       "      <td>0.131222</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.166381</td>\n",
       "      <td>0.115435</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.214058</td>\n",
       "      <td>0.172414</td>\n",
       "      <td>...</td>\n",
       "      <td>0.165254</td>\n",
       "      <td>0.135458</td>\n",
       "      <td>0.099855</td>\n",
       "      <td>0.058264</td>\n",
       "      <td>0.130435</td>\n",
       "      <td>0.123110</td>\n",
       "      <td>0.096045</td>\n",
       "      <td>0.166253</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.194379</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Edoxudine</th>\n",
       "      <td>0.253644</td>\n",
       "      <td>0.313869</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.126761</td>\n",
       "      <td>0.129032</td>\n",
       "      <td>0.122914</td>\n",
       "      <td>0.081081</td>\n",
       "      <td>0.097770</td>\n",
       "      <td>0.142410</td>\n",
       "      <td>...</td>\n",
       "      <td>0.155914</td>\n",
       "      <td>0.339286</td>\n",
       "      <td>0.194030</td>\n",
       "      <td>0.065007</td>\n",
       "      <td>0.091340</td>\n",
       "      <td>0.470588</td>\n",
       "      <td>0.102464</td>\n",
       "      <td>0.724138</td>\n",
       "      <td>0.122995</td>\n",
       "      <td>0.764706</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Efavirenz</th>\n",
       "      <td>0.157635</td>\n",
       "      <td>0.117318</td>\n",
       "      <td>0.090909</td>\n",
       "      <td>0.090909</td>\n",
       "      <td>0.272085</td>\n",
       "      <td>0.169591</td>\n",
       "      <td>0.189024</td>\n",
       "      <td>0.070423</td>\n",
       "      <td>0.148649</td>\n",
       "      <td>0.129032</td>\n",
       "      <td>...</td>\n",
       "      <td>0.098131</td>\n",
       "      <td>0.093750</td>\n",
       "      <td>0.065831</td>\n",
       "      <td>0.214393</td>\n",
       "      <td>0.133412</td>\n",
       "      <td>0.105528</td>\n",
       "      <td>0.155844</td>\n",
       "      <td>0.196319</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.194444</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Saquinavir</th>\n",
       "      <td>0.168437</td>\n",
       "      <td>0.059002</td>\n",
       "      <td>0.055718</td>\n",
       "      <td>0.055718</td>\n",
       "      <td>0.124361</td>\n",
       "      <td>0.382488</td>\n",
       "      <td>0.288783</td>\n",
       "      <td>0.492958</td>\n",
       "      <td>0.223471</td>\n",
       "      <td>0.215909</td>\n",
       "      <td>...</td>\n",
       "      <td>0.093750</td>\n",
       "      <td>0.131805</td>\n",
       "      <td>0.103604</td>\n",
       "      <td>0.247191</td>\n",
       "      <td>0.375546</td>\n",
       "      <td>0.083455</td>\n",
       "      <td>0.304825</td>\n",
       "      <td>0.127451</td>\n",
       "      <td>0.129272</td>\n",
       "      <td>0.144201</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Simeprevir</th>\n",
       "      <td>0.198830</td>\n",
       "      <td>0.083815</td>\n",
       "      <td>0.079944</td>\n",
       "      <td>0.079944</td>\n",
       "      <td>0.116352</td>\n",
       "      <td>0.258278</td>\n",
       "      <td>0.351675</td>\n",
       "      <td>0.172122</td>\n",
       "      <td>0.216057</td>\n",
       "      <td>0.369193</td>\n",
       "      <td>...</td>\n",
       "      <td>0.105121</td>\n",
       "      <td>0.102362</td>\n",
       "      <td>0.081933</td>\n",
       "      <td>0.425061</td>\n",
       "      <td>0.275560</td>\n",
       "      <td>0.128571</td>\n",
       "      <td>0.457109</td>\n",
       "      <td>0.072464</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.119082</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Sinecatechins</th>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Sofosbuvir</th>\n",
       "      <td>0.137615</td>\n",
       "      <td>0.113360</td>\n",
       "      <td>0.108949</td>\n",
       "      <td>0.108949</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.227496</td>\n",
       "      <td>0.231788</td>\n",
       "      <td>0.191099</td>\n",
       "      <td>0.180654</td>\n",
       "      <td>0.179487</td>\n",
       "      <td>...</td>\n",
       "      <td>0.227723</td>\n",
       "      <td>0.316872</td>\n",
       "      <td>0.208151</td>\n",
       "      <td>0.121495</td>\n",
       "      <td>0.156250</td>\n",
       "      <td>0.271552</td>\n",
       "      <td>0.099366</td>\n",
       "      <td>0.370558</td>\n",
       "      <td>0.115174</td>\n",
       "      <td>0.371158</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Stavudine</th>\n",
       "      <td>0.318328</td>\n",
       "      <td>0.338583</td>\n",
       "      <td>0.184211</td>\n",
       "      <td>0.184211</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.030534</td>\n",
       "      <td>0.040462</td>\n",
       "      <td>0.070336</td>\n",
       "      <td>0.068966</td>\n",
       "      <td>0.112853</td>\n",
       "      <td>...</td>\n",
       "      <td>0.164773</td>\n",
       "      <td>0.323077</td>\n",
       "      <td>0.174242</td>\n",
       "      <td>0.079137</td>\n",
       "      <td>0.092233</td>\n",
       "      <td>0.433962</td>\n",
       "      <td>0.099338</td>\n",
       "      <td>0.774194</td>\n",
       "      <td>0.186944</td>\n",
       "      <td>0.813725</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Taribavirin</th>\n",
       "      <td>0.284404</td>\n",
       "      <td>0.305970</td>\n",
       "      <td>0.201299</td>\n",
       "      <td>0.201299</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.039886</td>\n",
       "      <td>0.041056</td>\n",
       "      <td>0.117021</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.147541</td>\n",
       "      <td>0.333333</td>\n",
       "      <td>0.166667</td>\n",
       "      <td>0.048276</td>\n",
       "      <td>0.088517</td>\n",
       "      <td>0.591837</td>\n",
       "      <td>0.074169</td>\n",
       "      <td>0.465517</td>\n",
       "      <td>0.198830</td>\n",
       "      <td>0.305842</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tecovirimat</th>\n",
       "      <td>0.157895</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.073171</td>\n",
       "      <td>0.144781</td>\n",
       "      <td>0.155914</td>\n",
       "      <td>0.117021</td>\n",
       "      <td>0.219904</td>\n",
       "      <td>0.200565</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.201080</td>\n",
       "      <td>0.134133</td>\n",
       "      <td>0.081081</td>\n",
       "      <td>0.232529</td>\n",
       "      <td>0.135266</td>\n",
       "      <td>0.200000</td>\n",
       "      <td>0.148649</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tegobuvir</th>\n",
       "      <td>0.166966</td>\n",
       "      <td>0.115385</td>\n",
       "      <td>0.129944</td>\n",
       "      <td>0.129944</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.162444</td>\n",
       "      <td>0.103448</td>\n",
       "      <td>0.195929</td>\n",
       "      <td>0.268437</td>\n",
       "      <td>0.197982</td>\n",
       "      <td>...</td>\n",
       "      <td>0.101695</td>\n",
       "      <td>0.133672</td>\n",
       "      <td>0.121252</td>\n",
       "      <td>0.072589</td>\n",
       "      <td>0.256891</td>\n",
       "      <td>0.123188</td>\n",
       "      <td>0.109959</td>\n",
       "      <td>0.189979</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.170825</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Telaprevir</th>\n",
       "      <td>0.203125</td>\n",
       "      <td>0.114650</td>\n",
       "      <td>0.102603</td>\n",
       "      <td>0.102603</td>\n",
       "      <td>0.116751</td>\n",
       "      <td>0.246537</td>\n",
       "      <td>0.346633</td>\n",
       "      <td>0.396574</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.300122</td>\n",
       "      <td>...</td>\n",
       "      <td>0.103152</td>\n",
       "      <td>0.143271</td>\n",
       "      <td>0.147541</td>\n",
       "      <td>0.308962</td>\n",
       "      <td>0.292308</td>\n",
       "      <td>0.141975</td>\n",
       "      <td>0.395076</td>\n",
       "      <td>0.107544</td>\n",
       "      <td>0.109489</td>\n",
       "      <td>0.112805</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Telbivudine</th>\n",
       "      <td>0.261261</td>\n",
       "      <td>0.325758</td>\n",
       "      <td>0.182109</td>\n",
       "      <td>0.182109</td>\n",
       "      <td>0.131387</td>\n",
       "      <td>0.084813</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.069277</td>\n",
       "      <td>0.099476</td>\n",
       "      <td>0.130298</td>\n",
       "      <td>...</td>\n",
       "      <td>0.160221</td>\n",
       "      <td>0.349693</td>\n",
       "      <td>0.175373</td>\n",
       "      <td>0.079545</td>\n",
       "      <td>0.092437</td>\n",
       "      <td>0.471698</td>\n",
       "      <td>0.103811</td>\n",
       "      <td>0.743590</td>\n",
       "      <td>0.126374</td>\n",
       "      <td>0.792453</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tenofovir</th>\n",
       "      <td>0.442623</td>\n",
       "      <td>0.468254</td>\n",
       "      <td>0.940299</td>\n",
       "      <td>0.940299</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.126482</td>\n",
       "      <td>0.056338</td>\n",
       "      <td>0.094453</td>\n",
       "      <td>0.101695</td>\n",
       "      <td>0.091445</td>\n",
       "      <td>...</td>\n",
       "      <td>0.410256</td>\n",
       "      <td>0.424149</td>\n",
       "      <td>0.242830</td>\n",
       "      <td>0.026316</td>\n",
       "      <td>0.103203</td>\n",
       "      <td>0.547170</td>\n",
       "      <td>0.069652</td>\n",
       "      <td>0.267606</td>\n",
       "      <td>0.066998</td>\n",
       "      <td>0.197605</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tenofovir alafenamide</th>\n",
       "      <td>0.296703</td>\n",
       "      <td>0.293532</td>\n",
       "      <td>0.346633</td>\n",
       "      <td>0.346633</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.316271</td>\n",
       "      <td>0.179554</td>\n",
       "      <td>0.262554</td>\n",
       "      <td>0.226994</td>\n",
       "      <td>0.148387</td>\n",
       "      <td>...</td>\n",
       "      <td>0.428571</td>\n",
       "      <td>0.473430</td>\n",
       "      <td>0.302932</td>\n",
       "      <td>0.064073</td>\n",
       "      <td>0.220339</td>\n",
       "      <td>0.349398</td>\n",
       "      <td>0.094258</td>\n",
       "      <td>0.175115</td>\n",
       "      <td>0.048825</td>\n",
       "      <td>0.136364</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tenofovir disoproxil</th>\n",
       "      <td>0.290323</td>\n",
       "      <td>0.286408</td>\n",
       "      <td>0.506849</td>\n",
       "      <td>0.506849</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.196721</td>\n",
       "      <td>0.108404</td>\n",
       "      <td>0.155844</td>\n",
       "      <td>0.137640</td>\n",
       "      <td>0.073986</td>\n",
       "      <td>...</td>\n",
       "      <td>0.388889</td>\n",
       "      <td>0.402715</td>\n",
       "      <td>0.343284</td>\n",
       "      <td>0.021739</td>\n",
       "      <td>0.154661</td>\n",
       "      <td>0.341176</td>\n",
       "      <td>0.049383</td>\n",
       "      <td>0.171171</td>\n",
       "      <td>0.047957</td>\n",
       "      <td>0.133603</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tenofovir disoproxil fumarate</th>\n",
       "      <td>0.252336</td>\n",
       "      <td>0.244813</td>\n",
       "      <td>0.425287</td>\n",
       "      <td>0.425287</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.099888</td>\n",
       "      <td>0.142857</td>\n",
       "      <td>0.125320</td>\n",
       "      <td>0.068282</td>\n",
       "      <td>...</td>\n",
       "      <td>0.334661</td>\n",
       "      <td>0.347656</td>\n",
       "      <td>0.307578</td>\n",
       "      <td>0.020202</td>\n",
       "      <td>0.143984</td>\n",
       "      <td>0.292929</td>\n",
       "      <td>0.046065</td>\n",
       "      <td>0.147860</td>\n",
       "      <td>0.124361</td>\n",
       "      <td>0.117021</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tipranavir</th>\n",
       "      <td>0.059908</td>\n",
       "      <td>0.067126</td>\n",
       "      <td>0.064892</td>\n",
       "      <td>0.064892</td>\n",
       "      <td>0.148515</td>\n",
       "      <td>0.287284</td>\n",
       "      <td>0.193317</td>\n",
       "      <td>0.266150</td>\n",
       "      <td>0.187335</td>\n",
       "      <td>0.195652</td>\n",
       "      <td>...</td>\n",
       "      <td>0.059908</td>\n",
       "      <td>0.070890</td>\n",
       "      <td>0.152369</td>\n",
       "      <td>0.216057</td>\n",
       "      <td>0.162562</td>\n",
       "      <td>0.061093</td>\n",
       "      <td>0.210469</td>\n",
       "      <td>0.068301</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.083333</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Triazavirin</th>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Trifluridine</th>\n",
       "      <td>0.239669</td>\n",
       "      <td>0.292517</td>\n",
       "      <td>0.166181</td>\n",
       "      <td>0.166181</td>\n",
       "      <td>0.118421</td>\n",
       "      <td>0.080074</td>\n",
       "      <td>0.106259</td>\n",
       "      <td>0.066282</td>\n",
       "      <td>0.094527</td>\n",
       "      <td>0.124438</td>\n",
       "      <td>...</td>\n",
       "      <td>0.147959</td>\n",
       "      <td>0.320225</td>\n",
       "      <td>0.166078</td>\n",
       "      <td>0.076294</td>\n",
       "      <td>0.089224</td>\n",
       "      <td>0.438356</td>\n",
       "      <td>0.099874</td>\n",
       "      <td>0.659193</td>\n",
       "      <td>0.116751</td>\n",
       "      <td>0.701245</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Tromantadine</th>\n",
       "      <td>0.121951</td>\n",
       "      <td>0.083333</td>\n",
       "      <td>0.151685</td>\n",
       "      <td>0.151685</td>\n",
       "      <td>0.583710</td>\n",
       "      <td>0.125954</td>\n",
       "      <td>0.144131</td>\n",
       "      <td>0.196172</td>\n",
       "      <td>0.056782</td>\n",
       "      <td>0.183801</td>\n",
       "      <td>...</td>\n",
       "      <td>0.069767</td>\n",
       "      <td>0.064302</td>\n",
       "      <td>0.068581</td>\n",
       "      <td>0.139601</td>\n",
       "      <td>0.117647</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.136951</td>\n",
       "      <td>0.076487</td>\n",
       "      <td>0.282051</td>\n",
       "      <td>0.093750</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>UC-781</th>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Umifenovir</th>\n",
       "      <td>0.170213</td>\n",
       "      <td>0.111111</td>\n",
       "      <td>0.106195</td>\n",
       "      <td>0.106195</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.338583</td>\n",
       "      <td>0.145140</td>\n",
       "      <td>0.228070</td>\n",
       "      <td>0.296928</td>\n",
       "      <td>0.212553</td>\n",
       "      <td>...</td>\n",
       "      <td>0.208791</td>\n",
       "      <td>0.180124</td>\n",
       "      <td>0.129272</td>\n",
       "      <td>0.123737</td>\n",
       "      <td>0.227863</td>\n",
       "      <td>0.200924</td>\n",
       "      <td>0.065934</td>\n",
       "      <td>0.202046</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.161731</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Valaciclovir</th>\n",
       "      <td>0.286863</td>\n",
       "      <td>0.694215</td>\n",
       "      <td>0.423841</td>\n",
       "      <td>0.423841</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.205534</td>\n",
       "      <td>0.094183</td>\n",
       "      <td>0.142433</td>\n",
       "      <td>0.131148</td>\n",
       "      <td>0.062670</td>\n",
       "      <td>...</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.779359</td>\n",
       "      <td>0.408163</td>\n",
       "      <td>0.025000</td>\n",
       "      <td>0.193112</td>\n",
       "      <td>0.465798</td>\n",
       "      <td>0.057579</td>\n",
       "      <td>0.273885</td>\n",
       "      <td>0.121718</td>\n",
       "      <td>0.151832</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Valganciclovir</th>\n",
       "      <td>0.408451</td>\n",
       "      <td>0.530249</td>\n",
       "      <td>0.315789</td>\n",
       "      <td>0.315789</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.179775</td>\n",
       "      <td>0.091644</td>\n",
       "      <td>0.125356</td>\n",
       "      <td>0.126984</td>\n",
       "      <td>0.061008</td>\n",
       "      <td>...</td>\n",
       "      <td>0.779359</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.473029</td>\n",
       "      <td>0.024390</td>\n",
       "      <td>0.188475</td>\n",
       "      <td>0.525974</td>\n",
       "      <td>0.076023</td>\n",
       "      <td>0.324921</td>\n",
       "      <td>0.103604</td>\n",
       "      <td>0.299435</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Valomaciclovir</th>\n",
       "      <td>0.287313</td>\n",
       "      <td>0.260163</td>\n",
       "      <td>0.223709</td>\n",
       "      <td>0.223709</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.129477</td>\n",
       "      <td>0.072961</td>\n",
       "      <td>0.132948</td>\n",
       "      <td>0.097561</td>\n",
       "      <td>0.085526</td>\n",
       "      <td>...</td>\n",
       "      <td>0.408163</td>\n",
       "      <td>0.473029</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.057495</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.274131</td>\n",
       "      <td>0.100099</td>\n",
       "      <td>0.121324</td>\n",
       "      <td>0.158433</td>\n",
       "      <td>0.169065</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Vaniprevir</th>\n",
       "      <td>0.142061</td>\n",
       "      <td>0.027397</td>\n",
       "      <td>0.026667</td>\n",
       "      <td>0.026667</td>\n",
       "      <td>0.105919</td>\n",
       "      <td>0.175743</td>\n",
       "      <td>0.527027</td>\n",
       "      <td>0.243001</td>\n",
       "      <td>0.182549</td>\n",
       "      <td>0.306884</td>\n",
       "      <td>...</td>\n",
       "      <td>0.025000</td>\n",
       "      <td>0.024390</td>\n",
       "      <td>0.057495</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.217472</td>\n",
       "      <td>0.074830</td>\n",
       "      <td>0.551940</td>\n",
       "      <td>0.128049</td>\n",
       "      <td>0.128134</td>\n",
       "      <td>0.077348</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Velpatasvir</th>\n",
       "      <td>0.182927</td>\n",
       "      <td>0.109741</td>\n",
       "      <td>0.103118</td>\n",
       "      <td>0.103118</td>\n",
       "      <td>0.079046</td>\n",
       "      <td>0.255708</td>\n",
       "      <td>0.316872</td>\n",
       "      <td>0.396896</td>\n",
       "      <td>0.279826</td>\n",
       "      <td>0.270000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.194581</td>\n",
       "      <td>0.188475</td>\n",
       "      <td>0.176471</td>\n",
       "      <td>0.217472</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.112426</td>\n",
       "      <td>0.221441</td>\n",
       "      <td>0.108344</td>\n",
       "      <td>0.092150</td>\n",
       "      <td>0.096698</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Vidarabine</th>\n",
       "      <td>0.525424</td>\n",
       "      <td>0.617021</td>\n",
       "      <td>0.520913</td>\n",
       "      <td>0.520913</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.050725</td>\n",
       "      <td>0.055556</td>\n",
       "      <td>0.055635</td>\n",
       "      <td>0.064516</td>\n",
       "      <td>0.112760</td>\n",
       "      <td>...</td>\n",
       "      <td>0.465798</td>\n",
       "      <td>0.525974</td>\n",
       "      <td>0.274131</td>\n",
       "      <td>0.074830</td>\n",
       "      <td>0.100703</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.109694</td>\n",
       "      <td>0.522634</td>\n",
       "      <td>0.122449</td>\n",
       "      <td>0.404110</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Voxilaprevir</th>\n",
       "      <td>0.167315</td>\n",
       "      <td>0.062740</td>\n",
       "      <td>0.059850</td>\n",
       "      <td>0.059850</td>\n",
       "      <td>0.097222</td>\n",
       "      <td>0.185270</td>\n",
       "      <td>0.486486</td>\n",
       "      <td>0.223022</td>\n",
       "      <td>0.180851</td>\n",
       "      <td>0.359003</td>\n",
       "      <td>...</td>\n",
       "      <td>0.057579</td>\n",
       "      <td>0.056257</td>\n",
       "      <td>0.082927</td>\n",
       "      <td>0.551940</td>\n",
       "      <td>0.207646</td>\n",
       "      <td>0.122581</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.106613</td>\n",
       "      <td>0.115288</td>\n",
       "      <td>0.112549</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zalcitabine</th>\n",
       "      <td>0.324503</td>\n",
       "      <td>0.416309</td>\n",
       "      <td>0.236749</td>\n",
       "      <td>0.236749</td>\n",
       "      <td>0.102662</td>\n",
       "      <td>0.142241</td>\n",
       "      <td>0.092308</td>\n",
       "      <td>0.059908</td>\n",
       "      <td>0.144465</td>\n",
       "      <td>0.127214</td>\n",
       "      <td>...</td>\n",
       "      <td>0.273885</td>\n",
       "      <td>0.324921</td>\n",
       "      <td>0.121324</td>\n",
       "      <td>0.156250</td>\n",
       "      <td>0.096059</td>\n",
       "      <td>0.522634</td>\n",
       "      <td>0.106613</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.130435</td>\n",
       "      <td>0.690141</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zanamivir</th>\n",
       "      <td>0.291209</td>\n",
       "      <td>0.075269</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.151631</td>\n",
       "      <td>0.125541</td>\n",
       "      <td>0.098266</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.037736</td>\n",
       "      <td>...</td>\n",
       "      <td>0.080460</td>\n",
       "      <td>0.103604</td>\n",
       "      <td>0.114754</td>\n",
       "      <td>0.128134</td>\n",
       "      <td>0.092150</td>\n",
       "      <td>0.122449</td>\n",
       "      <td>0.128010</td>\n",
       "      <td>0.130435</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.143617</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zidovudine</th>\n",
       "      <td>0.246459</td>\n",
       "      <td>0.302817</td>\n",
       "      <td>0.171171</td>\n",
       "      <td>0.171171</td>\n",
       "      <td>0.122449</td>\n",
       "      <td>0.122047</td>\n",
       "      <td>0.107829</td>\n",
       "      <td>0.067251</td>\n",
       "      <td>0.132404</td>\n",
       "      <td>0.126332</td>\n",
       "      <td>...</td>\n",
       "      <td>0.151832</td>\n",
       "      <td>0.299435</td>\n",
       "      <td>0.169065</td>\n",
       "      <td>0.077348</td>\n",
       "      <td>0.091549</td>\n",
       "      <td>0.404110</td>\n",
       "      <td>0.112549</td>\n",
       "      <td>0.690141</td>\n",
       "      <td>0.143617</td>\n",
       "      <td>1.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>121 rows × 121 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "DRUG1                          Abacavir  Acyclovir  Adefovir  \\\n",
       "DRUG2                                                          \n",
       "Abacavir                       1.000000   0.501832  0.414474   \n",
       "Acyclovir                      0.443662   1.000000  0.551724   \n",
       "Adefovir                       0.414474   0.551724  1.000000   \n",
       "Adefovir dipivoxil             0.414474   0.551724  1.000000   \n",
       "Amantadine                     0.156250   0.000000  0.000000   \n",
       "Amprenavir                     0.051724   0.018868  0.052632   \n",
       "Asunaprevir                    0.133429   0.043478  0.057143   \n",
       "Atazanavir                     0.053352   0.059002  0.057269   \n",
       "Baloxavir marboxil             0.095238   0.127273  0.103448   \n",
       "Beclabuvir                     0.120690   0.069277  0.079882   \n",
       "Bictegravir                    0.151631   0.125265  0.160338   \n",
       "Boceprevir                     0.143376   0.000000  0.000000   \n",
       "Brivudine                      0.246459   0.302817  0.171171   \n",
       "Calanolide A                   0.134454   0.087963  0.065217   \n",
       "Carmofur                       0.126005   0.277372  0.152648   \n",
       "Chloroquine                    0.192893   0.139601  0.186441   \n",
       "Cidofovir                      0.228070   0.296296  0.528926   \n",
       "Clevudine                      0.250000   0.313869  0.176471   \n",
       "Cobicistat                     0.063554   0.083815  0.107914   \n",
       "Daclatasvir                    0.169014   0.116006  0.117479   \n",
       "Darunavir                      0.065574   0.017544  0.048951   \n",
       "Dasabuvir                      0.000000   0.000000  0.000000   \n",
       "Delavirdine                    0.111111   0.147903  0.093117   \n",
       "Dexamethasone                  0.122449   0.057269  0.000000   \n",
       "Didanosine                     0.457627   0.764706  0.444867   \n",
       "Docosanol                      0.130221   0.054054  0.025000   \n",
       "Dolutegravir                   0.160896   0.133787  0.171171   \n",
       "Doravirine                     0.141079   0.194030  0.131222   \n",
       "Edoxudine                      0.253644   0.313869  0.176471   \n",
       "Efavirenz                      0.157635   0.117318  0.090909   \n",
       "...                                 ...        ...       ...   \n",
       "Saquinavir                     0.168437   0.059002  0.055718   \n",
       "Simeprevir                     0.198830   0.083815  0.079944   \n",
       "Sinecatechins                  0.000000   0.000000  0.000000   \n",
       "Sofosbuvir                     0.137615   0.113360  0.108949   \n",
       "Stavudine                      0.318328   0.338583  0.184211   \n",
       "Taribavirin                    0.284404   0.305970  0.201299   \n",
       "Tecovirimat                    0.157895   0.000000  0.000000   \n",
       "Tegobuvir                      0.166966   0.115385  0.129944   \n",
       "Telaprevir                     0.203125   0.114650  0.102603   \n",
       "Telbivudine                    0.261261   0.325758  0.182109   \n",
       "Tenofovir                      0.442623   0.468254  0.940299   \n",
       "Tenofovir alafenamide          0.296703   0.293532  0.346633   \n",
       "Tenofovir disoproxil           0.290323   0.286408  0.506849   \n",
       "Tenofovir disoproxil fumarate  0.252336   0.244813  0.425287   \n",
       "Tipranavir                     0.059908   0.067126  0.064892   \n",
       "Triazavirin                    0.000000   0.000000  0.000000   \n",
       "Trifluridine                   0.239669   0.292517  0.166181   \n",
       "Tromantadine                   0.121951   0.083333  0.151685   \n",
       "UC-781                         0.000000   0.000000  0.000000   \n",
       "Umifenovir                     0.170213   0.111111  0.106195   \n",
       "Valaciclovir                   0.286863   0.694215  0.423841   \n",
       "Valganciclovir                 0.408451   0.530249  0.315789   \n",
       "Valomaciclovir                 0.287313   0.260163  0.223709   \n",
       "Vaniprevir                     0.142061   0.027397  0.026667   \n",
       "Velpatasvir                    0.182927   0.109741  0.103118   \n",
       "Vidarabine                     0.525424   0.617021  0.520913   \n",
       "Voxilaprevir                   0.167315   0.062740  0.059850   \n",
       "Zalcitabine                    0.324503   0.416309  0.236749   \n",
       "Zanamivir                      0.291209   0.075269  0.000000   \n",
       "Zidovudine                     0.246459   0.302817  0.171171   \n",
       "\n",
       "DRUG1                          Adefovir dipivoxil  Amantadine  Amprenavir  \\\n",
       "DRUG2                                                                       \n",
       "Abacavir                                 0.414474    0.156250    0.051724   \n",
       "Acyclovir                                0.551724    0.000000    0.018868   \n",
       "Adefovir                                 1.000000    0.000000    0.052632   \n",
       "Adefovir dipivoxil                       1.000000    0.000000    0.052632   \n",
       "Amantadine                               0.000000    1.000000    0.061571   \n",
       "Amprenavir                               0.052632    0.061571    1.000000   \n",
       "Asunaprevir                              0.057143    0.102107    0.248304   \n",
       "Atazanavir                               0.057269    0.000000    0.339286   \n",
       "Baloxavir marboxil                       0.103448    0.017544    0.253823   \n",
       "Beclabuvir                               0.079882    0.116667    0.287129   \n",
       "Bictegravir                              0.160338    0.113636    0.171750   \n",
       "Boceprevir                               0.000000    0.135371    0.149773   \n",
       "Brivudine                                0.171171    0.122449    0.096154   \n",
       "Calanolide A                             0.065217    0.000000    0.124161   \n",
       "Carmofur                                 0.152648    0.000000    0.031895   \n",
       "Chloroquine                              0.186441    0.000000    0.295896   \n",
       "Cidofovir                                0.528926    0.000000    0.175214   \n",
       "Clevudine                                0.176471    0.000000    0.031308   \n",
       "Cobicistat                               0.107914    0.000000    0.372832   \n",
       "Daclatasvir                              0.117479    0.077844    0.354020   \n",
       "Darunavir                                0.048951    0.073559    0.813953   \n",
       "Dasabuvir                                0.000000    0.000000    0.000000   \n",
       "Delavirdine                              0.093117    0.000000    0.250000   \n",
       "Dexamethasone                            0.000000    0.202186    0.044547   \n",
       "Didanosine                               0.444867    0.092150    0.186441   \n",
       "Docosanol                                0.025000    0.000000    0.000000   \n",
       "Dolutegravir                             0.171171    0.090047    0.176471   \n",
       "Doravirine                               0.131222    0.000000    0.166381   \n",
       "Edoxudine                                0.176471    0.126761    0.129032   \n",
       "Efavirenz                                0.090909    0.272085    0.169591   \n",
       "...                                           ...         ...         ...   \n",
       "Saquinavir                               0.055718    0.124361    0.382488   \n",
       "Simeprevir                               0.079944    0.116352    0.258278   \n",
       "Sinecatechins                            0.000000    0.000000    0.000000   \n",
       "Sofosbuvir                               0.108949    0.000000    0.227496   \n",
       "Stavudine                                0.184211    0.000000    0.030534   \n",
       "Taribavirin                              0.201299    0.000000    0.000000   \n",
       "Tecovirimat                              0.000000    0.073171    0.144781   \n",
       "Tegobuvir                                0.129944    0.000000    0.162444   \n",
       "Telaprevir                               0.102603    0.116751    0.246537   \n",
       "Telbivudine                              0.182109    0.131387    0.084813   \n",
       "Tenofovir                                0.940299    0.000000    0.126482   \n",
       "Tenofovir alafenamide                    0.346633    0.000000    0.316271   \n",
       "Tenofovir disoproxil                     0.506849    0.000000    0.196721   \n",
       "Tenofovir disoproxil fumarate            0.425287    0.000000    0.176471   \n",
       "Tipranavir                               0.064892    0.148515    0.287284   \n",
       "Triazavirin                              0.000000    0.000000    0.000000   \n",
       "Trifluridine                             0.166181    0.118421    0.080074   \n",
       "Tromantadine                             0.151685    0.583710    0.125954   \n",
       "UC-781                                   0.000000    0.000000    0.000000   \n",
       "Umifenovir                               0.106195    0.000000    0.338583   \n",
       "Valaciclovir                             0.423841    0.000000    0.205534   \n",
       "Valganciclovir                           0.315789    0.000000    0.179775   \n",
       "Valomaciclovir                           0.223709    0.000000    0.129477   \n",
       "Vaniprevir                               0.026667    0.105919    0.175743   \n",
       "Velpatasvir                              0.103118    0.079046    0.255708   \n",
       "Vidarabine                               0.520913    0.000000    0.050725   \n",
       "Voxilaprevir                             0.059850    0.097222    0.185270   \n",
       "Zalcitabine                              0.236749    0.102662    0.142241   \n",
       "Zanamivir                                0.000000    0.000000    0.151631   \n",
       "Zidovudine                               0.171171    0.122449    0.122047   \n",
       "\n",
       "DRUG1                          Asunaprevir  Atazanavir  Baloxavir marboxil  \\\n",
       "DRUG2                                                                        \n",
       "Abacavir                          0.151603    0.053352            0.095238   \n",
       "Acyclovir                         0.043478    0.059002            0.127273   \n",
       "Adefovir                          0.057143    0.057269            0.103448   \n",
       "Adefovir dipivoxil                0.057143    0.057269            0.103448   \n",
       "Amantadine                        0.127695    0.000000            0.017544   \n",
       "Amprenavir                        0.262003    0.339286            0.257669   \n",
       "Asunaprevir                       1.000000    0.334981            0.234568   \n",
       "Atazanavir                        0.365360    0.927273            0.250000   \n",
       "Baloxavir marboxil                0.234568    0.235813            1.000000   \n",
       "Beclabuvir                        0.267442    0.206313            0.267606   \n",
       "Bictegravir                       0.294452    0.135204            0.343284   \n",
       "Boceprevir                        0.340942    0.350954            0.103811   \n",
       "Brivudine                         0.121076    0.079882            0.096121   \n",
       "Calanolide A                      0.092545    0.164095            0.188590   \n",
       "Carmofur                          0.057971    0.181364            0.086207   \n",
       "Chloroquine                       0.176471    0.235772            0.146712   \n",
       "Cidofovir                         0.057971    0.088957            0.101399   \n",
       "Clevudine                         0.039326    0.068249            0.066667   \n",
       "Cobicistat                        0.289954    0.363636            0.284289   \n",
       "Daclatasvir                       0.363636    0.532148            0.308176   \n",
       "Darunavir                         0.264822    0.320225            0.225071   \n",
       "Dasabuvir                         0.000000    0.000000            0.000000   \n",
       "Delavirdine                       0.293103    0.195652            0.240310   \n",
       "Dexamethasone                     0.137566    0.057935            0.112738   \n",
       "Didanosine                        0.088235    0.057269            0.157324   \n",
       "Docosanol                         0.000000    0.000000            0.000000   \n",
       "Dolutegravir                      0.234222    0.125654            0.358885   \n",
       "Doravirine                        0.115435    0.111111            0.214058   \n",
       "Edoxudine                         0.122914    0.081081            0.097770   \n",
       "Efavirenz                         0.189024    0.070423            0.148649   \n",
       "...                                    ...         ...                 ...   \n",
       "Saquinavir                        0.288783    0.492958            0.223471   \n",
       "Simeprevir                        0.351675    0.172122            0.216057   \n",
       "Sinecatechins                     0.000000    0.000000            0.000000   \n",
       "Sofosbuvir                        0.231788    0.191099            0.180654   \n",
       "Stavudine                         0.040462    0.070336            0.068966   \n",
       "Taribavirin                       0.039886    0.041056            0.117021   \n",
       "Tecovirimat                       0.155914    0.117021            0.219904   \n",
       "Tegobuvir                         0.103448    0.195929            0.268437   \n",
       "Telaprevir                        0.346633    0.396574            0.111111   \n",
       "Telbivudine                       0.111111    0.069277            0.099476   \n",
       "Tenofovir                         0.056338    0.094453            0.101695   \n",
       "Tenofovir alafenamide             0.179554    0.262554            0.226994   \n",
       "Tenofovir disoproxil              0.108404    0.155844            0.137640   \n",
       "Tenofovir disoproxil fumarate     0.099888    0.142857            0.125320   \n",
       "Tipranavir                        0.193317    0.266150            0.187335   \n",
       "Triazavirin                       0.000000    0.000000            0.000000   \n",
       "Trifluridine                      0.106259    0.066282            0.094527   \n",
       "Tromantadine                      0.144131    0.196172            0.056782   \n",
       "UC-781                            0.000000    0.000000            0.000000   \n",
       "Umifenovir                        0.145140    0.228070            0.296928   \n",
       "Valaciclovir                      0.094183    0.142433            0.131148   \n",
       "Valganciclovir                    0.091644    0.125356            0.126984   \n",
       "Valomaciclovir                    0.072961    0.132948            0.097561   \n",
       "Vaniprevir                        0.527027    0.243001            0.182549   \n",
       "Velpatasvir                       0.316872    0.396896            0.279826   \n",
       "Vidarabine                        0.055556    0.055635            0.064516   \n",
       "Voxilaprevir                      0.486486    0.223022            0.180851   \n",
       "Zalcitabine                       0.092308    0.059908            0.144465   \n",
       "Zanamivir                         0.125541    0.098266            0.000000   \n",
       "Zidovudine                        0.107829    0.067251            0.132404   \n",
       "\n",
       "DRUG1                          Beclabuvir     ...      Valaciclovir  \\\n",
       "DRUG2                                         ...                     \n",
       "Abacavir                         0.120690     ...          0.325967   \n",
       "Acyclovir                        0.069277     ...          0.694215   \n",
       "Adefovir                         0.079882     ...          0.423841   \n",
       "Adefovir dipivoxil               0.079882     ...          0.423841   \n",
       "Amantadine                       0.116667     ...          0.000000   \n",
       "Amprenavir                       0.287129     ...          0.205534   \n",
       "Asunaprevir                      0.276347     ...          0.094183   \n",
       "Atazanavir                       0.264775     ...          0.127379   \n",
       "Baloxavir marboxil               0.253165     ...          0.131148   \n",
       "Beclabuvir                       1.000000     ...          0.062670   \n",
       "Bictegravir                      0.296830     ...          0.109057   \n",
       "Boceprevir                       0.143911     ...          0.000000   \n",
       "Brivudine                        0.140216     ...          0.151832   \n",
       "Calanolide A                     0.201717     ...          0.075697   \n",
       "Carmofur                         0.090909     ...          0.220930   \n",
       "Chloroquine                      0.130690     ...          0.143552   \n",
       "Cidofovir                        0.068249     ...          0.200000   \n",
       "Clevudine                        0.114504     ...          0.155914   \n",
       "Cobicistat                       0.271283     ...          0.134163   \n",
       "Daclatasvir                      0.303345     ...          0.215227   \n",
       "Darunavir                        0.273458     ...          0.152482   \n",
       "Dasabuvir                        0.000000     ...          0.000000   \n",
       "Delavirdine                      0.282421     ...          0.152344   \n",
       "Dexamethasone                    0.216023     ...          0.000000   \n",
       "Didanosine                       0.117917     ...          0.508772   \n",
       "Docosanol                        0.000000     ...          0.022222   \n",
       "Dolutegravir                     0.312217     ...          0.115460   \n",
       "Doravirine                       0.172414     ...          0.165254   \n",
       "Edoxudine                        0.142410     ...          0.155914   \n",
       "Efavirenz                        0.129032     ...          0.098131   \n",
       "...                                   ...     ...               ...   \n",
       "Saquinavir                       0.215909     ...          0.093750   \n",
       "Simeprevir                       0.369193     ...          0.105121   \n",
       "Sinecatechins                    0.000000     ...          0.000000   \n",
       "Sofosbuvir                       0.179487     ...          0.227723   \n",
       "Stavudine                        0.112853     ...          0.164773   \n",
       "Taribavirin                      0.000000     ...          0.147541   \n",
       "Tecovirimat                      0.200565     ...          0.000000   \n",
       "Tegobuvir                        0.197982     ...          0.101695   \n",
       "Telaprevir                       0.300122     ...          0.103152   \n",
       "Telbivudine                      0.130298     ...          0.160221   \n",
       "Tenofovir                        0.091445     ...          0.410256   \n",
       "Tenofovir alafenamide            0.148387     ...          0.428571   \n",
       "Tenofovir disoproxil             0.073986     ...          0.388889   \n",
       "Tenofovir disoproxil fumarate    0.068282     ...          0.334661   \n",
       "Tipranavir                       0.195652     ...          0.059908   \n",
       "Triazavirin                      0.000000     ...          0.000000   \n",
       "Trifluridine                     0.124438     ...          0.147959   \n",
       "Tromantadine                     0.183801     ...          0.069767   \n",
       "UC-781                           0.000000     ...          0.000000   \n",
       "Umifenovir                       0.212553     ...          0.208791   \n",
       "Valaciclovir                     0.062670     ...          1.000000   \n",
       "Valganciclovir                   0.061008     ...          0.779359   \n",
       "Valomaciclovir                   0.085526     ...          0.408163   \n",
       "Vaniprevir                       0.306884     ...          0.025000   \n",
       "Velpatasvir                      0.270000     ...          0.194581   \n",
       "Vidarabine                       0.112760     ...          0.465798   \n",
       "Voxilaprevir                     0.359003     ...          0.057579   \n",
       "Zalcitabine                      0.127214     ...          0.273885   \n",
       "Zanamivir                        0.037736     ...          0.080460   \n",
       "Zidovudine                       0.126332     ...          0.151832   \n",
       "\n",
       "DRUG1                          Valganciclovir  Valomaciclovir  Vaniprevir  \\\n",
       "DRUG2                                                                       \n",
       "Abacavir                             0.412429        0.287313    0.142061   \n",
       "Acyclovir                            0.530249        0.260163    0.027397   \n",
       "Adefovir                             0.315789        0.223709    0.026667   \n",
       "Adefovir dipivoxil                   0.315789        0.223709    0.026667   \n",
       "Amantadine                           0.000000        0.000000    0.092308   \n",
       "Amprenavir                           0.181989        0.131034    0.271754   \n",
       "Asunaprevir                          0.091644        0.072961    0.529093   \n",
       "Atazanavir                           0.109551        0.139535    0.264237   \n",
       "Baloxavir marboxil                   0.126984        0.097561    0.194896   \n",
       "Beclabuvir                           0.061008        0.086718    0.306884   \n",
       "Bictegravir                          0.105169        0.091644    0.298343   \n",
       "Boceprevir                           0.041667        0.096606    0.296791   \n",
       "Brivudine                            0.329480        0.169065    0.087866   \n",
       "Calanolide A                         0.052632        0.106195    0.156373   \n",
       "Carmofur                             0.176471        0.206897    0.125926   \n",
       "Chloroquine                          0.134259        0.131448    0.091644   \n",
       "Cidofovir                            0.294118        0.162362    0.027027   \n",
       "Clevudine                            0.339286        0.172161    0.078431   \n",
       "Cobicistat                           0.149111        0.166478    0.149653   \n",
       "Daclatasvir                          0.209104        0.203704    0.206186   \n",
       "Darunavir                            0.169284        0.124183    0.223733   \n",
       "Dasabuvir                            0.000000        0.000000    0.000000   \n",
       "Delavirdine                          0.146617        0.108033    0.261872   \n",
       "Dexamethasone                        0.081594        0.000000    0.201080   \n",
       "Didanosine                           0.475410        0.262327    0.106322   \n",
       "Docosanol                            0.064302        0.440860    0.047120   \n",
       "Dolutegravir                         0.111111        0.095506    0.228070   \n",
       "Doravirine                           0.135458        0.099855    0.058264   \n",
       "Edoxudine                            0.339286        0.194030    0.065007   \n",
       "Efavirenz                            0.093750        0.065831    0.214393   \n",
       "...                                       ...             ...         ...   \n",
       "Saquinavir                           0.131805        0.103604    0.247191   \n",
       "Simeprevir                           0.102362        0.081933    0.425061   \n",
       "Sinecatechins                        0.000000        0.000000    0.000000   \n",
       "Sofosbuvir                           0.316872        0.208151    0.121495   \n",
       "Stavudine                            0.323077        0.174242    0.079137   \n",
       "Taribavirin                          0.333333        0.166667    0.048276   \n",
       "Tecovirimat                          0.000000        0.000000    0.201080   \n",
       "Tegobuvir                            0.133672        0.121252    0.072589   \n",
       "Telaprevir                           0.143271        0.147541    0.308962   \n",
       "Telbivudine                          0.349693        0.175373    0.079545   \n",
       "Tenofovir                            0.424149        0.242830    0.026316   \n",
       "Tenofovir alafenamide                0.473430        0.302932    0.064073   \n",
       "Tenofovir disoproxil                 0.402715        0.343284    0.021739   \n",
       "Tenofovir disoproxil fumarate        0.347656        0.307578    0.020202   \n",
       "Tipranavir                           0.070890        0.152369    0.216057   \n",
       "Triazavirin                          0.000000        0.000000    0.000000   \n",
       "Trifluridine                         0.320225        0.166078    0.076294   \n",
       "Tromantadine                         0.064302        0.068581    0.139601   \n",
       "UC-781                               0.000000        0.000000    0.000000   \n",
       "Umifenovir                           0.180124        0.129272    0.123737   \n",
       "Valaciclovir                         0.779359        0.408163    0.025000   \n",
       "Valganciclovir                       1.000000        0.473029    0.024390   \n",
       "Valomaciclovir                       0.473029        1.000000    0.057495   \n",
       "Vaniprevir                           0.024390        0.057495    1.000000   \n",
       "Velpatasvir                          0.188475        0.176471    0.217472   \n",
       "Vidarabine                           0.525974        0.274131    0.074830   \n",
       "Voxilaprevir                         0.056257        0.082927    0.551940   \n",
       "Zalcitabine                          0.324921        0.121324    0.156250   \n",
       "Zanamivir                            0.103604        0.114754    0.128134   \n",
       "Zidovudine                           0.299435        0.169065    0.077348   \n",
       "\n",
       "DRUG1                          Velpatasvir  Vidarabine  Voxilaprevir  \\\n",
       "DRUG2                                                                  \n",
       "Abacavir                          0.181486    0.525424      0.129235   \n",
       "Acyclovir                         0.109741    0.617021      0.062740   \n",
       "Adefovir                          0.116505    0.520913      0.059850   \n",
       "Adefovir dipivoxil                0.116505    0.520913      0.059850   \n",
       "Amantadine                        0.095541    0.000000      0.091160   \n",
       "Amprenavir                        0.251422    0.050725      0.185270   \n",
       "Asunaprevir                       0.318229    0.055556      0.504975   \n",
       "Atazanavir                        0.407821    0.055635      0.307692   \n",
       "Baloxavir marboxil                0.305310    0.064516      0.211790   \n",
       "Beclabuvir                        0.295918    0.124438      0.337793   \n",
       "Bictegravir                       0.230248    0.177686      0.246944   \n",
       "Boceprevir                        0.245829    0.052632      0.301115   \n",
       "Brivudine                         0.090270    0.453901      0.101152   \n",
       "Calanolide A                      0.105150    0.177829      0.197007   \n",
       "Carmofur                          0.068075    0.164179      0.127517   \n",
       "Chloroquine                       0.128085    0.122449      0.135204   \n",
       "Cidofovir                         0.100363    0.282895      0.050000   \n",
       "Clevudine                         0.091340    0.459854      0.096774   \n",
       "Cobicistat                        0.376050    0.112676      0.177588   \n",
       "Daclatasvir                       0.664565    0.151079      0.185958   \n",
       "Darunavir                         0.278027    0.156716      0.292271   \n",
       "Dasabuvir                         0.000000    0.000000      0.000000   \n",
       "Delavirdine                       0.212121    0.111111      0.272040   \n",
       "Dexamethasone                     0.101695    0.097046      0.197531   \n",
       "Didanosine                        0.128834    0.793722      0.125828   \n",
       "Docosanol                         0.000000    0.119792      0.042654   \n",
       "Dolutegravir                      0.251476    0.166307      0.228288   \n",
       "Doravirine                        0.130435    0.123110      0.096045   \n",
       "Edoxudine                         0.091340    0.470588      0.102464   \n",
       "Efavirenz                         0.133412    0.105528      0.155844   \n",
       "...                                    ...         ...           ...   \n",
       "Saquinavir                        0.375546    0.083455      0.304825   \n",
       "Simeprevir                        0.275560    0.128571      0.457109   \n",
       "Sinecatechins                     0.000000    0.000000      0.000000   \n",
       "Sofosbuvir                        0.156250    0.271552      0.099366   \n",
       "Stavudine                         0.092233    0.433962      0.099338   \n",
       "Taribavirin                       0.088517    0.591837      0.074169   \n",
       "Tecovirimat                       0.134133    0.081081      0.232529   \n",
       "Tegobuvir                         0.256891    0.123188      0.109959   \n",
       "Telaprevir                        0.292308    0.141975      0.395076   \n",
       "Telbivudine                       0.092437    0.471698      0.103811   \n",
       "Tenofovir                         0.103203    0.547170      0.069652   \n",
       "Tenofovir alafenamide             0.220339    0.349398      0.094258   \n",
       "Tenofovir disoproxil              0.154661    0.341176      0.049383   \n",
       "Tenofovir disoproxil fumarate     0.143984    0.292929      0.046065   \n",
       "Tipranavir                        0.162562    0.061093      0.210469   \n",
       "Triazavirin                       0.000000    0.000000      0.000000   \n",
       "Trifluridine                      0.089224    0.438356      0.099874   \n",
       "Tromantadine                      0.117647    0.000000      0.136951   \n",
       "UC-781                            0.000000    0.000000      0.000000   \n",
       "Umifenovir                        0.227863    0.200924      0.065934   \n",
       "Valaciclovir                      0.193112    0.465798      0.057579   \n",
       "Valganciclovir                    0.188475    0.525974      0.076023   \n",
       "Valomaciclovir                    0.176471    0.274131      0.100099   \n",
       "Vaniprevir                        0.217472    0.074830      0.551940   \n",
       "Velpatasvir                       1.000000    0.112426      0.221441   \n",
       "Vidarabine                        0.100703    1.000000      0.109694   \n",
       "Voxilaprevir                      0.207646    0.122581      1.000000   \n",
       "Zalcitabine                       0.096059    0.522634      0.106613   \n",
       "Zanamivir                         0.092150    0.122449      0.128010   \n",
       "Zidovudine                        0.091549    0.404110      0.112549   \n",
       "\n",
       "DRUG1                          Zalcitabine  Zanamivir  Zidovudine  \n",
       "DRUG2                                                              \n",
       "Abacavir                          0.324503   0.195929    0.246459  \n",
       "Acyclovir                         0.416309   0.075269    0.302817  \n",
       "Adefovir                          0.236749   0.000000    0.171171  \n",
       "Adefovir dipivoxil                0.236749   0.000000    0.171171  \n",
       "Amantadine                        0.102662   0.000000    0.122449  \n",
       "Amprenavir                        0.142241   0.151631    0.122047  \n",
       "Asunaprevir                       0.092308   0.103253    0.121076  \n",
       "Atazanavir                        0.059908   0.098266    0.067251  \n",
       "Baloxavir marboxil                0.144465   0.000000    0.132404  \n",
       "Beclabuvir                        0.127214   0.037736    0.126332  \n",
       "Bictegravir                       0.179138   0.199187    0.258427  \n",
       "Boceprevir                        0.076321   0.154562    0.046099  \n",
       "Brivudine                         0.690141   0.119792    0.724138  \n",
       "Calanolide A                      0.150000   0.159737    0.176471  \n",
       "Carmofur                          0.328125   0.178161    0.338028  \n",
       "Chloroquine                       0.114286   0.043084    0.113990  \n",
       "Cidofovir                         0.524664   0.102151    0.338028  \n",
       "Clevudine                         0.699029   0.129032    0.748879  \n",
       "Cobicistat                        0.057143   0.139241    0.037234  \n",
       "Daclatasvir                       0.111111   0.096257    0.118980  \n",
       "Darunavir                         0.117647   0.118881    0.123389  \n",
       "Dasabuvir                         0.000000   0.000000    0.000000  \n",
       "Delavirdine                       0.148649   0.137255    0.095618  \n",
       "Dexamethasone                     0.087963   0.176471    0.085106  \n",
       "Didanosine                        0.569507   0.120000    0.494253  \n",
       "Docosanol                         0.137725   0.212938    0.122995  \n",
       "Dolutegravir                      0.163895   0.214751    0.221198  \n",
       "Doravirine                        0.166253   0.000000    0.194379  \n",
       "Edoxudine                         0.724138   0.122995    0.764706  \n",
       "Efavirenz                         0.196319   0.000000    0.194444  \n",
       "...                                    ...        ...         ...  \n",
       "Saquinavir                        0.127451   0.129272    0.144201  \n",
       "Simeprevir                        0.072464   0.111111    0.119082  \n",
       "Sinecatechins                     0.000000   0.000000    0.000000  \n",
       "Sofosbuvir                        0.370558   0.115174    0.371158  \n",
       "Stavudine                         0.774194   0.186944    0.813725  \n",
       "Taribavirin                       0.465517   0.198830    0.305842  \n",
       "Tecovirimat                       0.135266   0.200000    0.148649  \n",
       "Tegobuvir                         0.189979   0.000000    0.170825  \n",
       "Telaprevir                        0.107544   0.109489    0.112805  \n",
       "Telbivudine                       0.743590   0.126374    0.792453  \n",
       "Tenofovir                         0.267606   0.066998    0.197605  \n",
       "Tenofovir alafenamide             0.175115   0.048825    0.136364  \n",
       "Tenofovir disoproxil              0.171171   0.047957    0.133603  \n",
       "Tenofovir disoproxil fumarate     0.147860   0.124361    0.117021  \n",
       "Tipranavir                        0.068301   0.111111    0.083333  \n",
       "Triazavirin                       0.000000   0.000000    0.000000  \n",
       "Trifluridine                      0.659193   0.116751    0.701245  \n",
       "Tromantadine                      0.076487   0.282051    0.093750  \n",
       "UC-781                            0.000000   0.000000    0.000000  \n",
       "Umifenovir                        0.202046   0.000000    0.161731  \n",
       "Valaciclovir                      0.273885   0.121718    0.151832  \n",
       "Valganciclovir                    0.324921   0.103604    0.299435  \n",
       "Valomaciclovir                    0.121324   0.158433    0.169065  \n",
       "Vaniprevir                        0.128049   0.128134    0.077348  \n",
       "Velpatasvir                       0.108344   0.092150    0.096698  \n",
       "Vidarabine                        0.522634   0.122449    0.404110  \n",
       "Voxilaprevir                      0.106613   0.115288    0.112549  \n",
       "Zalcitabine                       1.000000   0.130435    0.690141  \n",
       "Zanamivir                         0.130435   1.000000    0.143617  \n",
       "Zidovudine                        0.690141   0.143617    1.000000  \n",
       "\n",
       "[121 rows x 121 columns]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "drug_sim_matrix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "drug_sim_matrix.to_csv('data_processed/similarity_drugs.csv', index=True)\n",
    "\n",
    "sio.savemat('data_processed/drug_sim_matrix.mat',{'Sd':drug_sim_matrix.values , 'dr_names':drug_sim_matrix.index.values})"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Creating virus similarity matrix\n",
    "* 1. fetch complete genome for viruses (preferably refseq) from NCBI as fasta files (data_raw/virus_completeGenome/)\n",
    "* 2. find ONF (k-mer) based dissimilarities measures between them (data_processed/ONF_distance_shalini_system/ using VirHostMatcher) #has an empty last colmn\n",
    "* 3. subtract from 1 to get the similarity\n",
    "* 4. map viral genomic sequnce id to virus name"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 1. fetch complete genome for viruses: done manually"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 2. find ONF based distance measure: ran VirhostMatcher on Linux machine (Shalini's system)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### 3. subtract from 1 to get the similarity"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>NC_019843.3</th>\n",
       "      <th>NC_004297.0</th>\n",
       "      <th>NC_001802.1</th>\n",
       "      <th>NC_001722.1</th>\n",
       "      <th>NC_002023.0</th>\n",
       "      <th>NC_004718.3</th>\n",
       "      <th>NC_006998.1</th>\n",
       "      <th>AC_000017.1</th>\n",
       "      <th>NC_003977.2</th>\n",
       "      <th>NC_012532.1</th>\n",
       "      <th>...</th>\n",
       "      <th>NC_001611.1</th>\n",
       "      <th>MT184911.1</th>\n",
       "      <th>NC_003443.1</th>\n",
       "      <th>NC_001664.4</th>\n",
       "      <th>NC_002549.1</th>\n",
       "      <th>NC_004102.1</th>\n",
       "      <th>MT664795.1</th>\n",
       "      <th>NC_002204.0</th>\n",
       "      <th>NC_007605.1</th>\n",
       "      <th>NC_004162.2</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>d2star</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>NC_019843.3</th>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.550448</td>\n",
       "      <td>0.527246</td>\n",
       "      <td>0.516110</td>\n",
       "      <td>0.514545</td>\n",
       "      <td>0.643252</td>\n",
       "      <td>0.586605</td>\n",
       "      <td>0.568163</td>\n",
       "      <td>0.518922</td>\n",
       "      <td>0.556616</td>\n",
       "      <td>...</td>\n",
       "      <td>0.600338</td>\n",
       "      <td>0.644025</td>\n",
       "      <td>0.539901</td>\n",
       "      <td>0.524421</td>\n",
       "      <td>0.531314</td>\n",
       "      <td>0.510463</td>\n",
       "      <td>0.643232</td>\n",
       "      <td>0.545907</td>\n",
       "      <td>0.559538</td>\n",
       "      <td>0.544573</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_004297.0</th>\n",
       "      <td>0.550448</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.519091</td>\n",
       "      <td>0.510399</td>\n",
       "      <td>0.520113</td>\n",
       "      <td>0.527542</td>\n",
       "      <td>0.549818</td>\n",
       "      <td>0.518694</td>\n",
       "      <td>0.505781</td>\n",
       "      <td>0.520639</td>\n",
       "      <td>...</td>\n",
       "      <td>0.555074</td>\n",
       "      <td>0.551658</td>\n",
       "      <td>0.533355</td>\n",
       "      <td>0.512057</td>\n",
       "      <td>0.535780</td>\n",
       "      <td>0.503310</td>\n",
       "      <td>0.550711</td>\n",
       "      <td>0.519315</td>\n",
       "      <td>0.533343</td>\n",
       "      <td>0.512534</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001802.1</th>\n",
       "      <td>0.527246</td>\n",
       "      <td>0.519091</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.590772</td>\n",
       "      <td>0.497058</td>\n",
       "      <td>0.564588</td>\n",
       "      <td>0.563069</td>\n",
       "      <td>0.537429</td>\n",
       "      <td>0.502090</td>\n",
       "      <td>0.537206</td>\n",
       "      <td>...</td>\n",
       "      <td>0.576860</td>\n",
       "      <td>0.544464</td>\n",
       "      <td>0.515678</td>\n",
       "      <td>0.549949</td>\n",
       "      <td>0.535352</td>\n",
       "      <td>0.521066</td>\n",
       "      <td>0.546186</td>\n",
       "      <td>0.548284</td>\n",
       "      <td>0.557793</td>\n",
       "      <td>0.527765</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001722.1</th>\n",
       "      <td>0.516110</td>\n",
       "      <td>0.510399</td>\n",
       "      <td>0.590772</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.510926</td>\n",
       "      <td>0.545250</td>\n",
       "      <td>0.558640</td>\n",
       "      <td>0.559144</td>\n",
       "      <td>0.526467</td>\n",
       "      <td>0.519396</td>\n",
       "      <td>...</td>\n",
       "      <td>0.568388</td>\n",
       "      <td>0.550746</td>\n",
       "      <td>0.546993</td>\n",
       "      <td>0.542321</td>\n",
       "      <td>0.526720</td>\n",
       "      <td>0.518988</td>\n",
       "      <td>0.550547</td>\n",
       "      <td>0.551428</td>\n",
       "      <td>0.565254</td>\n",
       "      <td>0.550270</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_002023.0</th>\n",
       "      <td>0.514545</td>\n",
       "      <td>0.520113</td>\n",
       "      <td>0.497058</td>\n",
       "      <td>0.510926</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.524090</td>\n",
       "      <td>0.510801</td>\n",
       "      <td>0.486268</td>\n",
       "      <td>0.505161</td>\n",
       "      <td>0.522643</td>\n",
       "      <td>...</td>\n",
       "      <td>0.532387</td>\n",
       "      <td>0.501776</td>\n",
       "      <td>0.533012</td>\n",
       "      <td>0.491691</td>\n",
       "      <td>0.502796</td>\n",
       "      <td>0.492594</td>\n",
       "      <td>0.501501</td>\n",
       "      <td>0.534272</td>\n",
       "      <td>0.467274</td>\n",
       "      <td>0.505682</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_004718.3</th>\n",
       "      <td>0.643252</td>\n",
       "      <td>0.527542</td>\n",
       "      <td>0.564588</td>\n",
       "      <td>0.545250</td>\n",
       "      <td>0.524090</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.600216</td>\n",
       "      <td>0.569111</td>\n",
       "      <td>0.522710</td>\n",
       "      <td>0.558093</td>\n",
       "      <td>...</td>\n",
       "      <td>0.626422</td>\n",
       "      <td>0.729252</td>\n",
       "      <td>0.542142</td>\n",
       "      <td>0.544347</td>\n",
       "      <td>0.557383</td>\n",
       "      <td>0.533091</td>\n",
       "      <td>0.726702</td>\n",
       "      <td>0.579757</td>\n",
       "      <td>0.581425</td>\n",
       "      <td>0.555768</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_006998.1</th>\n",
       "      <td>0.586605</td>\n",
       "      <td>0.549818</td>\n",
       "      <td>0.563069</td>\n",
       "      <td>0.558640</td>\n",
       "      <td>0.510801</td>\n",
       "      <td>0.600216</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.606433</td>\n",
       "      <td>0.534670</td>\n",
       "      <td>0.558802</td>\n",
       "      <td>...</td>\n",
       "      <td>0.921251</td>\n",
       "      <td>0.581332</td>\n",
       "      <td>0.547799</td>\n",
       "      <td>0.587750</td>\n",
       "      <td>0.542935</td>\n",
       "      <td>0.555293</td>\n",
       "      <td>0.582344</td>\n",
       "      <td>0.571046</td>\n",
       "      <td>0.608974</td>\n",
       "      <td>0.582249</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>AC_000017.1</th>\n",
       "      <td>0.568163</td>\n",
       "      <td>0.518694</td>\n",
       "      <td>0.537429</td>\n",
       "      <td>0.559144</td>\n",
       "      <td>0.486268</td>\n",
       "      <td>0.569111</td>\n",
       "      <td>0.606433</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.526842</td>\n",
       "      <td>0.539465</td>\n",
       "      <td>...</td>\n",
       "      <td>0.634814</td>\n",
       "      <td>0.557004</td>\n",
       "      <td>0.535021</td>\n",
       "      <td>0.619469</td>\n",
       "      <td>0.546800</td>\n",
       "      <td>0.606443</td>\n",
       "      <td>0.556788</td>\n",
       "      <td>0.524529</td>\n",
       "      <td>0.716869</td>\n",
       "      <td>0.569519</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_003977.2</th>\n",
       "      <td>0.518922</td>\n",
       "      <td>0.505781</td>\n",
       "      <td>0.502090</td>\n",
       "      <td>0.526467</td>\n",
       "      <td>0.505161</td>\n",
       "      <td>0.522710</td>\n",
       "      <td>0.534670</td>\n",
       "      <td>0.526842</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.526243</td>\n",
       "      <td>...</td>\n",
       "      <td>0.537287</td>\n",
       "      <td>0.526006</td>\n",
       "      <td>0.506574</td>\n",
       "      <td>0.524471</td>\n",
       "      <td>0.509264</td>\n",
       "      <td>0.509182</td>\n",
       "      <td>0.524441</td>\n",
       "      <td>0.509814</td>\n",
       "      <td>0.518547</td>\n",
       "      <td>0.521714</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_012532.1</th>\n",
       "      <td>0.556616</td>\n",
       "      <td>0.520639</td>\n",
       "      <td>0.537206</td>\n",
       "      <td>0.519396</td>\n",
       "      <td>0.522643</td>\n",
       "      <td>0.558093</td>\n",
       "      <td>0.558802</td>\n",
       "      <td>0.539465</td>\n",
       "      <td>0.526243</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.560636</td>\n",
       "      <td>0.554988</td>\n",
       "      <td>0.527757</td>\n",
       "      <td>0.551489</td>\n",
       "      <td>0.520352</td>\n",
       "      <td>0.537866</td>\n",
       "      <td>0.553905</td>\n",
       "      <td>0.526752</td>\n",
       "      <td>0.535054</td>\n",
       "      <td>0.541225</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_045512.2</th>\n",
       "      <td>0.644644</td>\n",
       "      <td>0.549456</td>\n",
       "      <td>0.545504</td>\n",
       "      <td>0.549069</td>\n",
       "      <td>0.500943</td>\n",
       "      <td>0.728346</td>\n",
       "      <td>0.581480</td>\n",
       "      <td>0.558859</td>\n",
       "      <td>0.525323</td>\n",
       "      <td>0.556155</td>\n",
       "      <td>...</td>\n",
       "      <td>0.603974</td>\n",
       "      <td>0.998166</td>\n",
       "      <td>0.549142</td>\n",
       "      <td>0.532837</td>\n",
       "      <td>0.559995</td>\n",
       "      <td>0.533642</td>\n",
       "      <td>0.996010</td>\n",
       "      <td>0.563785</td>\n",
       "      <td>0.582750</td>\n",
       "      <td>0.570482</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_038312.1</th>\n",
       "      <td>0.511891</td>\n",
       "      <td>0.489333</td>\n",
       "      <td>0.532117</td>\n",
       "      <td>0.541699</td>\n",
       "      <td>0.510674</td>\n",
       "      <td>0.520603</td>\n",
       "      <td>0.536627</td>\n",
       "      <td>0.524266</td>\n",
       "      <td>0.507214</td>\n",
       "      <td>0.503093</td>\n",
       "      <td>...</td>\n",
       "      <td>0.535328</td>\n",
       "      <td>0.521065</td>\n",
       "      <td>0.492367</td>\n",
       "      <td>0.524436</td>\n",
       "      <td>0.514640</td>\n",
       "      <td>0.492007</td>\n",
       "      <td>0.522424</td>\n",
       "      <td>0.526368</td>\n",
       "      <td>0.542802</td>\n",
       "      <td>0.499875</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_002728.1</th>\n",
       "      <td>0.540172</td>\n",
       "      <td>0.530432</td>\n",
       "      <td>0.518055</td>\n",
       "      <td>0.515225</td>\n",
       "      <td>0.526910</td>\n",
       "      <td>0.573436</td>\n",
       "      <td>0.558850</td>\n",
       "      <td>0.539682</td>\n",
       "      <td>0.527798</td>\n",
       "      <td>0.532405</td>\n",
       "      <td>...</td>\n",
       "      <td>0.573780</td>\n",
       "      <td>0.565167</td>\n",
       "      <td>0.570627</td>\n",
       "      <td>0.511283</td>\n",
       "      <td>0.539395</td>\n",
       "      <td>0.529315</td>\n",
       "      <td>0.563635</td>\n",
       "      <td>0.534239</td>\n",
       "      <td>0.536755</td>\n",
       "      <td>0.530703</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_006273.2</th>\n",
       "      <td>0.572725</td>\n",
       "      <td>0.539136</td>\n",
       "      <td>0.562552</td>\n",
       "      <td>0.600335</td>\n",
       "      <td>0.504539</td>\n",
       "      <td>0.610185</td>\n",
       "      <td>0.669318</td>\n",
       "      <td>0.780411</td>\n",
       "      <td>0.552126</td>\n",
       "      <td>0.576288</td>\n",
       "      <td>...</td>\n",
       "      <td>0.686044</td>\n",
       "      <td>0.601650</td>\n",
       "      <td>0.557578</td>\n",
       "      <td>0.643347</td>\n",
       "      <td>0.573636</td>\n",
       "      <td>0.622329</td>\n",
       "      <td>0.601502</td>\n",
       "      <td>0.528783</td>\n",
       "      <td>0.746688</td>\n",
       "      <td>0.603756</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001803.1</th>\n",
       "      <td>0.545235</td>\n",
       "      <td>0.509559</td>\n",
       "      <td>0.516068</td>\n",
       "      <td>0.515360</td>\n",
       "      <td>0.506141</td>\n",
       "      <td>0.544726</td>\n",
       "      <td>0.531494</td>\n",
       "      <td>0.532778</td>\n",
       "      <td>0.513848</td>\n",
       "      <td>0.518027</td>\n",
       "      <td>...</td>\n",
       "      <td>0.549620</td>\n",
       "      <td>0.547076</td>\n",
       "      <td>0.546678</td>\n",
       "      <td>0.530657</td>\n",
       "      <td>0.520057</td>\n",
       "      <td>0.525334</td>\n",
       "      <td>0.545684</td>\n",
       "      <td>0.515936</td>\n",
       "      <td>0.537795</td>\n",
       "      <td>0.523285</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_009333.1</th>\n",
       "      <td>0.568755</td>\n",
       "      <td>0.503642</td>\n",
       "      <td>0.557691</td>\n",
       "      <td>0.575266</td>\n",
       "      <td>0.502428</td>\n",
       "      <td>0.576323</td>\n",
       "      <td>0.634755</td>\n",
       "      <td>0.716268</td>\n",
       "      <td>0.528193</td>\n",
       "      <td>0.562551</td>\n",
       "      <td>...</td>\n",
       "      <td>0.663804</td>\n",
       "      <td>0.558067</td>\n",
       "      <td>0.532473</td>\n",
       "      <td>0.626716</td>\n",
       "      <td>0.546030</td>\n",
       "      <td>0.583633</td>\n",
       "      <td>0.558973</td>\n",
       "      <td>0.519455</td>\n",
       "      <td>0.742881</td>\n",
       "      <td>0.585898</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001348.1</th>\n",
       "      <td>0.540457</td>\n",
       "      <td>0.504545</td>\n",
       "      <td>0.522266</td>\n",
       "      <td>0.562429</td>\n",
       "      <td>0.503637</td>\n",
       "      <td>0.519492</td>\n",
       "      <td>0.605856</td>\n",
       "      <td>0.630264</td>\n",
       "      <td>0.520635</td>\n",
       "      <td>0.538801</td>\n",
       "      <td>...</td>\n",
       "      <td>0.625449</td>\n",
       "      <td>0.559815</td>\n",
       "      <td>0.532054</td>\n",
       "      <td>0.634080</td>\n",
       "      <td>0.529696</td>\n",
       "      <td>0.565284</td>\n",
       "      <td>0.559557</td>\n",
       "      <td>0.511440</td>\n",
       "      <td>0.639311</td>\n",
       "      <td>0.548850</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001798.2</th>\n",
       "      <td>0.569016</td>\n",
       "      <td>0.521164</td>\n",
       "      <td>0.564710</td>\n",
       "      <td>0.568534</td>\n",
       "      <td>0.514423</td>\n",
       "      <td>0.588871</td>\n",
       "      <td>0.621845</td>\n",
       "      <td>0.745194</td>\n",
       "      <td>0.544751</td>\n",
       "      <td>0.555958</td>\n",
       "      <td>...</td>\n",
       "      <td>0.632663</td>\n",
       "      <td>0.583673</td>\n",
       "      <td>0.567750</td>\n",
       "      <td>0.629655</td>\n",
       "      <td>0.551883</td>\n",
       "      <td>0.610380</td>\n",
       "      <td>0.582250</td>\n",
       "      <td>0.526030</td>\n",
       "      <td>0.763389</td>\n",
       "      <td>0.575516</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001538.1</th>\n",
       "      <td>0.538411</td>\n",
       "      <td>0.508838</td>\n",
       "      <td>0.528119</td>\n",
       "      <td>0.518394</td>\n",
       "      <td>0.504131</td>\n",
       "      <td>0.525851</td>\n",
       "      <td>0.552531</td>\n",
       "      <td>0.555941</td>\n",
       "      <td>0.536040</td>\n",
       "      <td>0.534483</td>\n",
       "      <td>...</td>\n",
       "      <td>0.553858</td>\n",
       "      <td>0.544169</td>\n",
       "      <td>0.526587</td>\n",
       "      <td>0.537509</td>\n",
       "      <td>0.537408</td>\n",
       "      <td>0.522992</td>\n",
       "      <td>0.545317</td>\n",
       "      <td>0.510139</td>\n",
       "      <td>0.537143</td>\n",
       "      <td>0.525485</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001355.1</th>\n",
       "      <td>0.521752</td>\n",
       "      <td>0.497360</td>\n",
       "      <td>0.546476</td>\n",
       "      <td>0.545758</td>\n",
       "      <td>0.529860</td>\n",
       "      <td>0.524642</td>\n",
       "      <td>0.541400</td>\n",
       "      <td>0.566264</td>\n",
       "      <td>0.528207</td>\n",
       "      <td>0.510152</td>\n",
       "      <td>...</td>\n",
       "      <td>0.575034</td>\n",
       "      <td>0.544783</td>\n",
       "      <td>0.498713</td>\n",
       "      <td>0.549656</td>\n",
       "      <td>0.529703</td>\n",
       "      <td>0.523119</td>\n",
       "      <td>0.546995</td>\n",
       "      <td>0.538316</td>\n",
       "      <td>0.569075</td>\n",
       "      <td>0.511945</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001436.1</th>\n",
       "      <td>0.516563</td>\n",
       "      <td>0.496418</td>\n",
       "      <td>0.525771</td>\n",
       "      <td>0.523823</td>\n",
       "      <td>0.486624</td>\n",
       "      <td>0.520243</td>\n",
       "      <td>0.534313</td>\n",
       "      <td>0.578751</td>\n",
       "      <td>0.507088</td>\n",
       "      <td>0.520954</td>\n",
       "      <td>...</td>\n",
       "      <td>0.543082</td>\n",
       "      <td>0.510838</td>\n",
       "      <td>0.528170</td>\n",
       "      <td>0.536668</td>\n",
       "      <td>0.529036</td>\n",
       "      <td>0.509075</td>\n",
       "      <td>0.512258</td>\n",
       "      <td>0.511532</td>\n",
       "      <td>0.552502</td>\n",
       "      <td>0.501660</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_005219.1</th>\n",
       "      <td>0.526666</td>\n",
       "      <td>0.501088</td>\n",
       "      <td>0.511566</td>\n",
       "      <td>0.493828</td>\n",
       "      <td>0.511730</td>\n",
       "      <td>0.515701</td>\n",
       "      <td>0.518196</td>\n",
       "      <td>0.510477</td>\n",
       "      <td>0.525732</td>\n",
       "      <td>0.523055</td>\n",
       "      <td>...</td>\n",
       "      <td>0.512523</td>\n",
       "      <td>0.520124</td>\n",
       "      <td>0.525135</td>\n",
       "      <td>0.478264</td>\n",
       "      <td>0.534352</td>\n",
       "      <td>0.511932</td>\n",
       "      <td>0.520575</td>\n",
       "      <td>0.496354</td>\n",
       "      <td>0.496211</td>\n",
       "      <td>0.521041</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001430.1</th>\n",
       "      <td>0.520923</td>\n",
       "      <td>0.512673</td>\n",
       "      <td>0.525733</td>\n",
       "      <td>0.508127</td>\n",
       "      <td>0.521183</td>\n",
       "      <td>0.539165</td>\n",
       "      <td>0.538473</td>\n",
       "      <td>0.522306</td>\n",
       "      <td>0.522836</td>\n",
       "      <td>0.488926</td>\n",
       "      <td>...</td>\n",
       "      <td>0.539484</td>\n",
       "      <td>0.538614</td>\n",
       "      <td>0.497506</td>\n",
       "      <td>0.498315</td>\n",
       "      <td>0.503441</td>\n",
       "      <td>0.474324</td>\n",
       "      <td>0.541834</td>\n",
       "      <td>0.522278</td>\n",
       "      <td>0.528164</td>\n",
       "      <td>0.519898</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001906.3</th>\n",
       "      <td>0.527766</td>\n",
       "      <td>0.513316</td>\n",
       "      <td>0.544229</td>\n",
       "      <td>0.507421</td>\n",
       "      <td>0.510066</td>\n",
       "      <td>0.570181</td>\n",
       "      <td>0.551098</td>\n",
       "      <td>0.539253</td>\n",
       "      <td>0.525165</td>\n",
       "      <td>0.522019</td>\n",
       "      <td>...</td>\n",
       "      <td>0.556279</td>\n",
       "      <td>0.557860</td>\n",
       "      <td>0.551325</td>\n",
       "      <td>0.530093</td>\n",
       "      <td>0.553989</td>\n",
       "      <td>0.542898</td>\n",
       "      <td>0.556376</td>\n",
       "      <td>0.526146</td>\n",
       "      <td>0.531518</td>\n",
       "      <td>0.535607</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_038311.1</th>\n",
       "      <td>0.516336</td>\n",
       "      <td>0.516378</td>\n",
       "      <td>0.509770</td>\n",
       "      <td>0.521404</td>\n",
       "      <td>0.476707</td>\n",
       "      <td>0.546831</td>\n",
       "      <td>0.527702</td>\n",
       "      <td>0.535844</td>\n",
       "      <td>0.497736</td>\n",
       "      <td>0.503093</td>\n",
       "      <td>...</td>\n",
       "      <td>0.537124</td>\n",
       "      <td>0.560439</td>\n",
       "      <td>0.520215</td>\n",
       "      <td>0.528060</td>\n",
       "      <td>0.528037</td>\n",
       "      <td>0.502146</td>\n",
       "      <td>0.561794</td>\n",
       "      <td>0.497753</td>\n",
       "      <td>0.547882</td>\n",
       "      <td>0.521557</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_010415.1</th>\n",
       "      <td>0.542819</td>\n",
       "      <td>0.513018</td>\n",
       "      <td>0.517266</td>\n",
       "      <td>0.518558</td>\n",
       "      <td>0.515899</td>\n",
       "      <td>0.548926</td>\n",
       "      <td>0.505114</td>\n",
       "      <td>0.491636</td>\n",
       "      <td>0.506899</td>\n",
       "      <td>0.502136</td>\n",
       "      <td>...</td>\n",
       "      <td>0.510359</td>\n",
       "      <td>0.533763</td>\n",
       "      <td>0.495492</td>\n",
       "      <td>0.496539</td>\n",
       "      <td>0.498397</td>\n",
       "      <td>0.484325</td>\n",
       "      <td>0.532723</td>\n",
       "      <td>0.533802</td>\n",
       "      <td>0.544281</td>\n",
       "      <td>0.508609</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001731.1</th>\n",
       "      <td>0.546615</td>\n",
       "      <td>0.537360</td>\n",
       "      <td>0.521206</td>\n",
       "      <td>0.578368</td>\n",
       "      <td>0.498269</td>\n",
       "      <td>0.577606</td>\n",
       "      <td>0.551336</td>\n",
       "      <td>0.686523</td>\n",
       "      <td>0.540400</td>\n",
       "      <td>0.544827</td>\n",
       "      <td>...</td>\n",
       "      <td>0.560594</td>\n",
       "      <td>0.547963</td>\n",
       "      <td>0.528181</td>\n",
       "      <td>0.563526</td>\n",
       "      <td>0.553710</td>\n",
       "      <td>0.626379</td>\n",
       "      <td>0.547898</td>\n",
       "      <td>0.498999</td>\n",
       "      <td>0.675377</td>\n",
       "      <td>0.555728</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>JX276378.1</th>\n",
       "      <td>0.529717</td>\n",
       "      <td>0.517264</td>\n",
       "      <td>0.490831</td>\n",
       "      <td>0.506106</td>\n",
       "      <td>0.512410</td>\n",
       "      <td>0.540989</td>\n",
       "      <td>0.510400</td>\n",
       "      <td>0.498210</td>\n",
       "      <td>0.516581</td>\n",
       "      <td>0.501666</td>\n",
       "      <td>...</td>\n",
       "      <td>0.525899</td>\n",
       "      <td>0.554665</td>\n",
       "      <td>0.505537</td>\n",
       "      <td>0.497999</td>\n",
       "      <td>0.513568</td>\n",
       "      <td>0.488933</td>\n",
       "      <td>0.554807</td>\n",
       "      <td>0.514054</td>\n",
       "      <td>0.521696</td>\n",
       "      <td>0.516603</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_006307.0</th>\n",
       "      <td>0.539721</td>\n",
       "      <td>0.522986</td>\n",
       "      <td>0.525313</td>\n",
       "      <td>0.520549</td>\n",
       "      <td>0.534289</td>\n",
       "      <td>0.543968</td>\n",
       "      <td>0.554829</td>\n",
       "      <td>0.531434</td>\n",
       "      <td>0.521881</td>\n",
       "      <td>0.514296</td>\n",
       "      <td>...</td>\n",
       "      <td>0.571070</td>\n",
       "      <td>0.534794</td>\n",
       "      <td>0.508661</td>\n",
       "      <td>0.545716</td>\n",
       "      <td>0.533297</td>\n",
       "      <td>0.503351</td>\n",
       "      <td>0.533688</td>\n",
       "      <td>0.564369</td>\n",
       "      <td>0.539729</td>\n",
       "      <td>0.533277</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001806.2</th>\n",
       "      <td>0.571731</td>\n",
       "      <td>0.507440</td>\n",
       "      <td>0.547129</td>\n",
       "      <td>0.549193</td>\n",
       "      <td>0.503788</td>\n",
       "      <td>0.590993</td>\n",
       "      <td>0.620861</td>\n",
       "      <td>0.722914</td>\n",
       "      <td>0.538787</td>\n",
       "      <td>0.546510</td>\n",
       "      <td>...</td>\n",
       "      <td>0.630542</td>\n",
       "      <td>0.581256</td>\n",
       "      <td>0.547037</td>\n",
       "      <td>0.628677</td>\n",
       "      <td>0.536519</td>\n",
       "      <td>0.601197</td>\n",
       "      <td>0.579313</td>\n",
       "      <td>0.520589</td>\n",
       "      <td>0.751015</td>\n",
       "      <td>0.579950</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001796.2</th>\n",
       "      <td>0.539027</td>\n",
       "      <td>0.542692</td>\n",
       "      <td>0.534535</td>\n",
       "      <td>0.536877</td>\n",
       "      <td>0.508429</td>\n",
       "      <td>0.541224</td>\n",
       "      <td>0.529867</td>\n",
       "      <td>0.535468</td>\n",
       "      <td>0.497884</td>\n",
       "      <td>0.526766</td>\n",
       "      <td>...</td>\n",
       "      <td>0.544899</td>\n",
       "      <td>0.559024</td>\n",
       "      <td>0.559364</td>\n",
       "      <td>0.524891</td>\n",
       "      <td>0.525593</td>\n",
       "      <td>0.505323</td>\n",
       "      <td>0.558932</td>\n",
       "      <td>0.547818</td>\n",
       "      <td>0.528152</td>\n",
       "      <td>0.530805</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MT612131.1</th>\n",
       "      <td>0.644450</td>\n",
       "      <td>0.550245</td>\n",
       "      <td>0.546236</td>\n",
       "      <td>0.548765</td>\n",
       "      <td>0.499039</td>\n",
       "      <td>0.726454</td>\n",
       "      <td>0.578888</td>\n",
       "      <td>0.552388</td>\n",
       "      <td>0.525233</td>\n",
       "      <td>0.554789</td>\n",
       "      <td>...</td>\n",
       "      <td>0.601514</td>\n",
       "      <td>0.997035</td>\n",
       "      <td>0.546931</td>\n",
       "      <td>0.529684</td>\n",
       "      <td>0.559266</td>\n",
       "      <td>0.517213</td>\n",
       "      <td>0.996931</td>\n",
       "      <td>0.566879</td>\n",
       "      <td>0.580525</td>\n",
       "      <td>0.566407</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001611.1</th>\n",
       "      <td>0.600338</td>\n",
       "      <td>0.555074</td>\n",
       "      <td>0.576860</td>\n",
       "      <td>0.568388</td>\n",
       "      <td>0.532387</td>\n",
       "      <td>0.626422</td>\n",
       "      <td>0.921251</td>\n",
       "      <td>0.634814</td>\n",
       "      <td>0.537287</td>\n",
       "      <td>0.560636</td>\n",
       "      <td>...</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.604205</td>\n",
       "      <td>0.560852</td>\n",
       "      <td>0.600244</td>\n",
       "      <td>0.548989</td>\n",
       "      <td>0.552597</td>\n",
       "      <td>0.605407</td>\n",
       "      <td>0.591862</td>\n",
       "      <td>0.624289</td>\n",
       "      <td>0.594740</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MT184911.1</th>\n",
       "      <td>0.644025</td>\n",
       "      <td>0.551658</td>\n",
       "      <td>0.544464</td>\n",
       "      <td>0.550746</td>\n",
       "      <td>0.501776</td>\n",
       "      <td>0.729252</td>\n",
       "      <td>0.581332</td>\n",
       "      <td>0.557004</td>\n",
       "      <td>0.526006</td>\n",
       "      <td>0.554988</td>\n",
       "      <td>...</td>\n",
       "      <td>0.604205</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.548693</td>\n",
       "      <td>0.531054</td>\n",
       "      <td>0.558302</td>\n",
       "      <td>0.521010</td>\n",
       "      <td>0.995644</td>\n",
       "      <td>0.566565</td>\n",
       "      <td>0.583394</td>\n",
       "      <td>0.568477</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_003443.1</th>\n",
       "      <td>0.539901</td>\n",
       "      <td>0.533355</td>\n",
       "      <td>0.515678</td>\n",
       "      <td>0.546993</td>\n",
       "      <td>0.533012</td>\n",
       "      <td>0.542142</td>\n",
       "      <td>0.547799</td>\n",
       "      <td>0.535021</td>\n",
       "      <td>0.506574</td>\n",
       "      <td>0.527757</td>\n",
       "      <td>...</td>\n",
       "      <td>0.560852</td>\n",
       "      <td>0.548693</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.527033</td>\n",
       "      <td>0.558169</td>\n",
       "      <td>0.525639</td>\n",
       "      <td>0.549756</td>\n",
       "      <td>0.518571</td>\n",
       "      <td>0.529067</td>\n",
       "      <td>0.500118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_001664.4</th>\n",
       "      <td>0.524421</td>\n",
       "      <td>0.512057</td>\n",
       "      <td>0.549949</td>\n",
       "      <td>0.542321</td>\n",
       "      <td>0.491691</td>\n",
       "      <td>0.544347</td>\n",
       "      <td>0.587750</td>\n",
       "      <td>0.619469</td>\n",
       "      <td>0.524471</td>\n",
       "      <td>0.551489</td>\n",
       "      <td>...</td>\n",
       "      <td>0.600244</td>\n",
       "      <td>0.531054</td>\n",
       "      <td>0.527033</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.537894</td>\n",
       "      <td>0.568921</td>\n",
       "      <td>0.530737</td>\n",
       "      <td>0.518800</td>\n",
       "      <td>0.584021</td>\n",
       "      <td>0.545105</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_002549.1</th>\n",
       "      <td>0.531314</td>\n",
       "      <td>0.535780</td>\n",
       "      <td>0.535352</td>\n",
       "      <td>0.526720</td>\n",
       "      <td>0.502796</td>\n",
       "      <td>0.557383</td>\n",
       "      <td>0.542935</td>\n",
       "      <td>0.546800</td>\n",
       "      <td>0.509264</td>\n",
       "      <td>0.520352</td>\n",
       "      <td>...</td>\n",
       "      <td>0.548989</td>\n",
       "      <td>0.558302</td>\n",
       "      <td>0.558169</td>\n",
       "      <td>0.537894</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.535986</td>\n",
       "      <td>0.562622</td>\n",
       "      <td>0.535551</td>\n",
       "      <td>0.528878</td>\n",
       "      <td>0.532395</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_004102.1</th>\n",
       "      <td>0.510463</td>\n",
       "      <td>0.503310</td>\n",
       "      <td>0.521066</td>\n",
       "      <td>0.518988</td>\n",
       "      <td>0.492594</td>\n",
       "      <td>0.533091</td>\n",
       "      <td>0.555293</td>\n",
       "      <td>0.606443</td>\n",
       "      <td>0.509182</td>\n",
       "      <td>0.537866</td>\n",
       "      <td>...</td>\n",
       "      <td>0.552597</td>\n",
       "      <td>0.521010</td>\n",
       "      <td>0.525639</td>\n",
       "      <td>0.568921</td>\n",
       "      <td>0.535986</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.517438</td>\n",
       "      <td>0.491391</td>\n",
       "      <td>0.562101</td>\n",
       "      <td>0.539485</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MT664795.1</th>\n",
       "      <td>0.643232</td>\n",
       "      <td>0.550711</td>\n",
       "      <td>0.546186</td>\n",
       "      <td>0.550547</td>\n",
       "      <td>0.501501</td>\n",
       "      <td>0.726702</td>\n",
       "      <td>0.582344</td>\n",
       "      <td>0.556788</td>\n",
       "      <td>0.524441</td>\n",
       "      <td>0.553905</td>\n",
       "      <td>...</td>\n",
       "      <td>0.605407</td>\n",
       "      <td>0.995644</td>\n",
       "      <td>0.549756</td>\n",
       "      <td>0.530737</td>\n",
       "      <td>0.562622</td>\n",
       "      <td>0.517438</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.567198</td>\n",
       "      <td>0.582377</td>\n",
       "      <td>0.567182</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_002204.0</th>\n",
       "      <td>0.545907</td>\n",
       "      <td>0.519315</td>\n",
       "      <td>0.548284</td>\n",
       "      <td>0.551428</td>\n",
       "      <td>0.534272</td>\n",
       "      <td>0.579757</td>\n",
       "      <td>0.571046</td>\n",
       "      <td>0.524529</td>\n",
       "      <td>0.509814</td>\n",
       "      <td>0.526752</td>\n",
       "      <td>...</td>\n",
       "      <td>0.591862</td>\n",
       "      <td>0.566565</td>\n",
       "      <td>0.518571</td>\n",
       "      <td>0.518800</td>\n",
       "      <td>0.535551</td>\n",
       "      <td>0.491391</td>\n",
       "      <td>0.567198</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.508798</td>\n",
       "      <td>0.507271</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_007605.1</th>\n",
       "      <td>0.559538</td>\n",
       "      <td>0.533343</td>\n",
       "      <td>0.557793</td>\n",
       "      <td>0.565254</td>\n",
       "      <td>0.467274</td>\n",
       "      <td>0.581425</td>\n",
       "      <td>0.608974</td>\n",
       "      <td>0.716869</td>\n",
       "      <td>0.518547</td>\n",
       "      <td>0.535054</td>\n",
       "      <td>...</td>\n",
       "      <td>0.624289</td>\n",
       "      <td>0.583394</td>\n",
       "      <td>0.529067</td>\n",
       "      <td>0.584021</td>\n",
       "      <td>0.528878</td>\n",
       "      <td>0.562101</td>\n",
       "      <td>0.582377</td>\n",
       "      <td>0.508798</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.556191</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>NC_004162.2</th>\n",
       "      <td>0.544573</td>\n",
       "      <td>0.512534</td>\n",
       "      <td>0.527765</td>\n",
       "      <td>0.550270</td>\n",
       "      <td>0.505682</td>\n",
       "      <td>0.555768</td>\n",
       "      <td>0.582249</td>\n",
       "      <td>0.569519</td>\n",
       "      <td>0.521714</td>\n",
       "      <td>0.541225</td>\n",
       "      <td>...</td>\n",
       "      <td>0.594740</td>\n",
       "      <td>0.568477</td>\n",
       "      <td>0.500118</td>\n",
       "      <td>0.545105</td>\n",
       "      <td>0.532395</td>\n",
       "      <td>0.539485</td>\n",
       "      <td>0.567182</td>\n",
       "      <td>0.507271</td>\n",
       "      <td>0.556191</td>\n",
       "      <td>1.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>42 rows × 42 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "             NC_019843.3  NC_004297.0  NC_001802.1  NC_001722.1  NC_002023.0  \\\n",
       "d2star                                                                         \n",
       "NC_019843.3     1.000000     0.550448     0.527246     0.516110     0.514545   \n",
       "NC_004297.0     0.550448     1.000000     0.519091     0.510399     0.520113   \n",
       "NC_001802.1     0.527246     0.519091     1.000000     0.590772     0.497058   \n",
       "NC_001722.1     0.516110     0.510399     0.590772     1.000000     0.510926   \n",
       "NC_002023.0     0.514545     0.520113     0.497058     0.510926     1.000000   \n",
       "NC_004718.3     0.643252     0.527542     0.564588     0.545250     0.524090   \n",
       "NC_006998.1     0.586605     0.549818     0.563069     0.558640     0.510801   \n",
       "AC_000017.1     0.568163     0.518694     0.537429     0.559144     0.486268   \n",
       "NC_003977.2     0.518922     0.505781     0.502090     0.526467     0.505161   \n",
       "NC_012532.1     0.556616     0.520639     0.537206     0.519396     0.522643   \n",
       "NC_045512.2     0.644644     0.549456     0.545504     0.549069     0.500943   \n",
       "NC_038312.1     0.511891     0.489333     0.532117     0.541699     0.510674   \n",
       "NC_002728.1     0.540172     0.530432     0.518055     0.515225     0.526910   \n",
       "NC_006273.2     0.572725     0.539136     0.562552     0.600335     0.504539   \n",
       "NC_001803.1     0.545235     0.509559     0.516068     0.515360     0.506141   \n",
       "NC_009333.1     0.568755     0.503642     0.557691     0.575266     0.502428   \n",
       "NC_001348.1     0.540457     0.504545     0.522266     0.562429     0.503637   \n",
       "NC_001798.2     0.569016     0.521164     0.564710     0.568534     0.514423   \n",
       "NC_001538.1     0.538411     0.508838     0.528119     0.518394     0.504131   \n",
       "NC_001355.1     0.521752     0.497360     0.546476     0.545758     0.529860   \n",
       "NC_001436.1     0.516563     0.496418     0.525771     0.523823     0.486624   \n",
       "NC_005219.1     0.526666     0.501088     0.511566     0.493828     0.511730   \n",
       "NC_001430.1     0.520923     0.512673     0.525733     0.508127     0.521183   \n",
       "NC_001906.3     0.527766     0.513316     0.544229     0.507421     0.510066   \n",
       "NC_038311.1     0.516336     0.516378     0.509770     0.521404     0.476707   \n",
       "NC_010415.1     0.542819     0.513018     0.517266     0.518558     0.515899   \n",
       "NC_001731.1     0.546615     0.537360     0.521206     0.578368     0.498269   \n",
       "JX276378.1      0.529717     0.517264     0.490831     0.506106     0.512410   \n",
       "NC_006307.0     0.539721     0.522986     0.525313     0.520549     0.534289   \n",
       "NC_001806.2     0.571731     0.507440     0.547129     0.549193     0.503788   \n",
       "NC_001796.2     0.539027     0.542692     0.534535     0.536877     0.508429   \n",
       "MT612131.1      0.644450     0.550245     0.546236     0.548765     0.499039   \n",
       "NC_001611.1     0.600338     0.555074     0.576860     0.568388     0.532387   \n",
       "MT184911.1      0.644025     0.551658     0.544464     0.550746     0.501776   \n",
       "NC_003443.1     0.539901     0.533355     0.515678     0.546993     0.533012   \n",
       "NC_001664.4     0.524421     0.512057     0.549949     0.542321     0.491691   \n",
       "NC_002549.1     0.531314     0.535780     0.535352     0.526720     0.502796   \n",
       "NC_004102.1     0.510463     0.503310     0.521066     0.518988     0.492594   \n",
       "MT664795.1      0.643232     0.550711     0.546186     0.550547     0.501501   \n",
       "NC_002204.0     0.545907     0.519315     0.548284     0.551428     0.534272   \n",
       "NC_007605.1     0.559538     0.533343     0.557793     0.565254     0.467274   \n",
       "NC_004162.2     0.544573     0.512534     0.527765     0.550270     0.505682   \n",
       "\n",
       "             NC_004718.3  NC_006998.1  AC_000017.1  NC_003977.2  NC_012532.1  \\\n",
       "d2star                                                                         \n",
       "NC_019843.3     0.643252     0.586605     0.568163     0.518922     0.556616   \n",
       "NC_004297.0     0.527542     0.549818     0.518694     0.505781     0.520639   \n",
       "NC_001802.1     0.564588     0.563069     0.537429     0.502090     0.537206   \n",
       "NC_001722.1     0.545250     0.558640     0.559144     0.526467     0.519396   \n",
       "NC_002023.0     0.524090     0.510801     0.486268     0.505161     0.522643   \n",
       "NC_004718.3     1.000000     0.600216     0.569111     0.522710     0.558093   \n",
       "NC_006998.1     0.600216     1.000000     0.606433     0.534670     0.558802   \n",
       "AC_000017.1     0.569111     0.606433     1.000000     0.526842     0.539465   \n",
       "NC_003977.2     0.522710     0.534670     0.526842     1.000000     0.526243   \n",
       "NC_012532.1     0.558093     0.558802     0.539465     0.526243     1.000000   \n",
       "NC_045512.2     0.728346     0.581480     0.558859     0.525323     0.556155   \n",
       "NC_038312.1     0.520603     0.536627     0.524266     0.507214     0.503093   \n",
       "NC_002728.1     0.573436     0.558850     0.539682     0.527798     0.532405   \n",
       "NC_006273.2     0.610185     0.669318     0.780411     0.552126     0.576288   \n",
       "NC_001803.1     0.544726     0.531494     0.532778     0.513848     0.518027   \n",
       "NC_009333.1     0.576323     0.634755     0.716268     0.528193     0.562551   \n",
       "NC_001348.1     0.519492     0.605856     0.630264     0.520635     0.538801   \n",
       "NC_001798.2     0.588871     0.621845     0.745194     0.544751     0.555958   \n",
       "NC_001538.1     0.525851     0.552531     0.555941     0.536040     0.534483   \n",
       "NC_001355.1     0.524642     0.541400     0.566264     0.528207     0.510152   \n",
       "NC_001436.1     0.520243     0.534313     0.578751     0.507088     0.520954   \n",
       "NC_005219.1     0.515701     0.518196     0.510477     0.525732     0.523055   \n",
       "NC_001430.1     0.539165     0.538473     0.522306     0.522836     0.488926   \n",
       "NC_001906.3     0.570181     0.551098     0.539253     0.525165     0.522019   \n",
       "NC_038311.1     0.546831     0.527702     0.535844     0.497736     0.503093   \n",
       "NC_010415.1     0.548926     0.505114     0.491636     0.506899     0.502136   \n",
       "NC_001731.1     0.577606     0.551336     0.686523     0.540400     0.544827   \n",
       "JX276378.1      0.540989     0.510400     0.498210     0.516581     0.501666   \n",
       "NC_006307.0     0.543968     0.554829     0.531434     0.521881     0.514296   \n",
       "NC_001806.2     0.590993     0.620861     0.722914     0.538787     0.546510   \n",
       "NC_001796.2     0.541224     0.529867     0.535468     0.497884     0.526766   \n",
       "MT612131.1      0.726454     0.578888     0.552388     0.525233     0.554789   \n",
       "NC_001611.1     0.626422     0.921251     0.634814     0.537287     0.560636   \n",
       "MT184911.1      0.729252     0.581332     0.557004     0.526006     0.554988   \n",
       "NC_003443.1     0.542142     0.547799     0.535021     0.506574     0.527757   \n",
       "NC_001664.4     0.544347     0.587750     0.619469     0.524471     0.551489   \n",
       "NC_002549.1     0.557383     0.542935     0.546800     0.509264     0.520352   \n",
       "NC_004102.1     0.533091     0.555293     0.606443     0.509182     0.537866   \n",
       "MT664795.1      0.726702     0.582344     0.556788     0.524441     0.553905   \n",
       "NC_002204.0     0.579757     0.571046     0.524529     0.509814     0.526752   \n",
       "NC_007605.1     0.581425     0.608974     0.716869     0.518547     0.535054   \n",
       "NC_004162.2     0.555768     0.582249     0.569519     0.521714     0.541225   \n",
       "\n",
       "                ...       NC_001611.1  MT184911.1  NC_003443.1  NC_001664.4  \\\n",
       "d2star          ...                                                           \n",
       "NC_019843.3     ...          0.600338    0.644025     0.539901     0.524421   \n",
       "NC_004297.0     ...          0.555074    0.551658     0.533355     0.512057   \n",
       "NC_001802.1     ...          0.576860    0.544464     0.515678     0.549949   \n",
       "NC_001722.1     ...          0.568388    0.550746     0.546993     0.542321   \n",
       "NC_002023.0     ...          0.532387    0.501776     0.533012     0.491691   \n",
       "NC_004718.3     ...          0.626422    0.729252     0.542142     0.544347   \n",
       "NC_006998.1     ...          0.921251    0.581332     0.547799     0.587750   \n",
       "AC_000017.1     ...          0.634814    0.557004     0.535021     0.619469   \n",
       "NC_003977.2     ...          0.537287    0.526006     0.506574     0.524471   \n",
       "NC_012532.1     ...          0.560636    0.554988     0.527757     0.551489   \n",
       "NC_045512.2     ...          0.603974    0.998166     0.549142     0.532837   \n",
       "NC_038312.1     ...          0.535328    0.521065     0.492367     0.524436   \n",
       "NC_002728.1     ...          0.573780    0.565167     0.570627     0.511283   \n",
       "NC_006273.2     ...          0.686044    0.601650     0.557578     0.643347   \n",
       "NC_001803.1     ...          0.549620    0.547076     0.546678     0.530657   \n",
       "NC_009333.1     ...          0.663804    0.558067     0.532473     0.626716   \n",
       "NC_001348.1     ...          0.625449    0.559815     0.532054     0.634080   \n",
       "NC_001798.2     ...          0.632663    0.583673     0.567750     0.629655   \n",
       "NC_001538.1     ...          0.553858    0.544169     0.526587     0.537509   \n",
       "NC_001355.1     ...          0.575034    0.544783     0.498713     0.549656   \n",
       "NC_001436.1     ...          0.543082    0.510838     0.528170     0.536668   \n",
       "NC_005219.1     ...          0.512523    0.520124     0.525135     0.478264   \n",
       "NC_001430.1     ...          0.539484    0.538614     0.497506     0.498315   \n",
       "NC_001906.3     ...          0.556279    0.557860     0.551325     0.530093   \n",
       "NC_038311.1     ...          0.537124    0.560439     0.520215     0.528060   \n",
       "NC_010415.1     ...          0.510359    0.533763     0.495492     0.496539   \n",
       "NC_001731.1     ...          0.560594    0.547963     0.528181     0.563526   \n",
       "JX276378.1      ...          0.525899    0.554665     0.505537     0.497999   \n",
       "NC_006307.0     ...          0.571070    0.534794     0.508661     0.545716   \n",
       "NC_001806.2     ...          0.630542    0.581256     0.547037     0.628677   \n",
       "NC_001796.2     ...          0.544899    0.559024     0.559364     0.524891   \n",
       "MT612131.1      ...          0.601514    0.997035     0.546931     0.529684   \n",
       "NC_001611.1     ...          1.000000    0.604205     0.560852     0.600244   \n",
       "MT184911.1      ...          0.604205    1.000000     0.548693     0.531054   \n",
       "NC_003443.1     ...          0.560852    0.548693     1.000000     0.527033   \n",
       "NC_001664.4     ...          0.600244    0.531054     0.527033     1.000000   \n",
       "NC_002549.1     ...          0.548989    0.558302     0.558169     0.537894   \n",
       "NC_004102.1     ...          0.552597    0.521010     0.525639     0.568921   \n",
       "MT664795.1      ...          0.605407    0.995644     0.549756     0.530737   \n",
       "NC_002204.0     ...          0.591862    0.566565     0.518571     0.518800   \n",
       "NC_007605.1     ...          0.624289    0.583394     0.529067     0.584021   \n",
       "NC_004162.2     ...          0.594740    0.568477     0.500118     0.545105   \n",
       "\n",
       "             NC_002549.1  NC_004102.1  MT664795.1  NC_002204.0  NC_007605.1  \\\n",
       "d2star                                                                        \n",
       "NC_019843.3     0.531314     0.510463    0.643232     0.545907     0.559538   \n",
       "NC_004297.0     0.535780     0.503310    0.550711     0.519315     0.533343   \n",
       "NC_001802.1     0.535352     0.521066    0.546186     0.548284     0.557793   \n",
       "NC_001722.1     0.526720     0.518988    0.550547     0.551428     0.565254   \n",
       "NC_002023.0     0.502796     0.492594    0.501501     0.534272     0.467274   \n",
       "NC_004718.3     0.557383     0.533091    0.726702     0.579757     0.581425   \n",
       "NC_006998.1     0.542935     0.555293    0.582344     0.571046     0.608974   \n",
       "AC_000017.1     0.546800     0.606443    0.556788     0.524529     0.716869   \n",
       "NC_003977.2     0.509264     0.509182    0.524441     0.509814     0.518547   \n",
       "NC_012532.1     0.520352     0.537866    0.553905     0.526752     0.535054   \n",
       "NC_045512.2     0.559995     0.533642    0.996010     0.563785     0.582750   \n",
       "NC_038312.1     0.514640     0.492007    0.522424     0.526368     0.542802   \n",
       "NC_002728.1     0.539395     0.529315    0.563635     0.534239     0.536755   \n",
       "NC_006273.2     0.573636     0.622329    0.601502     0.528783     0.746688   \n",
       "NC_001803.1     0.520057     0.525334    0.545684     0.515936     0.537795   \n",
       "NC_009333.1     0.546030     0.583633    0.558973     0.519455     0.742881   \n",
       "NC_001348.1     0.529696     0.565284    0.559557     0.511440     0.639311   \n",
       "NC_001798.2     0.551883     0.610380    0.582250     0.526030     0.763389   \n",
       "NC_001538.1     0.537408     0.522992    0.545317     0.510139     0.537143   \n",
       "NC_001355.1     0.529703     0.523119    0.546995     0.538316     0.569075   \n",
       "NC_001436.1     0.529036     0.509075    0.512258     0.511532     0.552502   \n",
       "NC_005219.1     0.534352     0.511932    0.520575     0.496354     0.496211   \n",
       "NC_001430.1     0.503441     0.474324    0.541834     0.522278     0.528164   \n",
       "NC_001906.3     0.553989     0.542898    0.556376     0.526146     0.531518   \n",
       "NC_038311.1     0.528037     0.502146    0.561794     0.497753     0.547882   \n",
       "NC_010415.1     0.498397     0.484325    0.532723     0.533802     0.544281   \n",
       "NC_001731.1     0.553710     0.626379    0.547898     0.498999     0.675377   \n",
       "JX276378.1      0.513568     0.488933    0.554807     0.514054     0.521696   \n",
       "NC_006307.0     0.533297     0.503351    0.533688     0.564369     0.539729   \n",
       "NC_001806.2     0.536519     0.601197    0.579313     0.520589     0.751015   \n",
       "NC_001796.2     0.525593     0.505323    0.558932     0.547818     0.528152   \n",
       "MT612131.1      0.559266     0.517213    0.996931     0.566879     0.580525   \n",
       "NC_001611.1     0.548989     0.552597    0.605407     0.591862     0.624289   \n",
       "MT184911.1      0.558302     0.521010    0.995644     0.566565     0.583394   \n",
       "NC_003443.1     0.558169     0.525639    0.549756     0.518571     0.529067   \n",
       "NC_001664.4     0.537894     0.568921    0.530737     0.518800     0.584021   \n",
       "NC_002549.1     1.000000     0.535986    0.562622     0.535551     0.528878   \n",
       "NC_004102.1     0.535986     1.000000    0.517438     0.491391     0.562101   \n",
       "MT664795.1      0.562622     0.517438    1.000000     0.567198     0.582377   \n",
       "NC_002204.0     0.535551     0.491391    0.567198     1.000000     0.508798   \n",
       "NC_007605.1     0.528878     0.562101    0.582377     0.508798     1.000000   \n",
       "NC_004162.2     0.532395     0.539485    0.567182     0.507271     0.556191   \n",
       "\n",
       "             NC_004162.2  \n",
       "d2star                    \n",
       "NC_019843.3     0.544573  \n",
       "NC_004297.0     0.512534  \n",
       "NC_001802.1     0.527765  \n",
       "NC_001722.1     0.550270  \n",
       "NC_002023.0     0.505682  \n",
       "NC_004718.3     0.555768  \n",
       "NC_006998.1     0.582249  \n",
       "AC_000017.1     0.569519  \n",
       "NC_003977.2     0.521714  \n",
       "NC_012532.1     0.541225  \n",
       "NC_045512.2     0.570482  \n",
       "NC_038312.1     0.499875  \n",
       "NC_002728.1     0.530703  \n",
       "NC_006273.2     0.603756  \n",
       "NC_001803.1     0.523285  \n",
       "NC_009333.1     0.585898  \n",
       "NC_001348.1     0.548850  \n",
       "NC_001798.2     0.575516  \n",
       "NC_001538.1     0.525485  \n",
       "NC_001355.1     0.511945  \n",
       "NC_001436.1     0.501660  \n",
       "NC_005219.1     0.521041  \n",
       "NC_001430.1     0.519898  \n",
       "NC_001906.3     0.535607  \n",
       "NC_038311.1     0.521557  \n",
       "NC_010415.1     0.508609  \n",
       "NC_001731.1     0.555728  \n",
       "JX276378.1      0.516603  \n",
       "NC_006307.0     0.533277  \n",
       "NC_001806.2     0.579950  \n",
       "NC_001796.2     0.530805  \n",
       "MT612131.1      0.566407  \n",
       "NC_001611.1     0.594740  \n",
       "MT184911.1      0.568477  \n",
       "NC_003443.1     0.500118  \n",
       "NC_001664.4     0.545105  \n",
       "NC_002549.1     0.532395  \n",
       "NC_004102.1     0.539485  \n",
       "MT664795.1      0.567182  \n",
       "NC_002204.0     0.507271  \n",
       "NC_007605.1     0.556191  \n",
       "NC_004162.2     1.000000  \n",
       "\n",
       "[42 rows x 42 columns]"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#vir_sim_matrix=1-pd.read_csv('data_processed/ONF_distance/d2star_k6.csv', index_col=0, header=0)\n",
    "vir_sim_matrix=1-pd.read_csv('data_processed/ONF_distance_withCorStrains/d2star_k6.csv', index_col=0, header=0)\n",
    "\n",
    "vir_sim_matrix= vir_sim_matrix.iloc[:, :-1] #Remove last empty col\n",
    "vir_sim_matrix.columns=vir_sim_matrix.columns.str.rstrip('.fasta') #strip .fasta suffexi from col headers\n",
    "vir_sim_matrix.index=vir_sim_matrix.index.str.rstrip('.fasta') #strip .fasta suffexi from row indices\n",
    "vir_sim_matrix"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##### Map viral genomic sequnce id to virus name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "scrolled": true
   },
   "outputs": [],
   "source": [
    "#mapping=pd.read_excel('data_raw/database.xlsx', sheet_name='Virus_info')[['NCBI RefSeq Accession ID','ACRONYM' ]]\n",
    "mapping=pd.read_excel('data_raw/database.xlsx', sheet_name='Virus_info_withCorIsolates')[['NCBI RefSeq Accession ID','ACRONYM' ]]\n",
    "\n",
    "dic_vi=dict(mapping.values.tolist())\n",
    "vir_sim_matrix=vir_sim_matrix.rename(columns=dic_vi, index=dic_vi) \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Chikungunya virus</th>\n",
       "      <th>Coxsackievirus B5</th>\n",
       "      <th>Ebola virus</th>\n",
       "      <th>Enterovirus D</th>\n",
       "      <th>Enterovirus J</th>\n",
       "      <th>HBV</th>\n",
       "      <th>HCV</th>\n",
       "      <th>HHV-1</th>\n",
       "      <th>HHV-2</th>\n",
       "      <th>HHV-3</th>\n",
       "      <th>...</th>\n",
       "      <th>Nipah virus</th>\n",
       "      <th>RSV</th>\n",
       "      <th>SARS-CoV</th>\n",
       "      <th>SARS-CoV-2</th>\n",
       "      <th>SARS-CoV-2: april</th>\n",
       "      <th>SARS-CoV-2: feb</th>\n",
       "      <th>SARS-CoV-2: june</th>\n",
       "      <th>VV</th>\n",
       "      <th>Variola virus</th>\n",
       "      <th>Zika virus</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>d2star</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Chikungunya virus</th>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.516603</td>\n",
       "      <td>0.532395</td>\n",
       "      <td>0.519898</td>\n",
       "      <td>0.508609</td>\n",
       "      <td>0.521714</td>\n",
       "      <td>0.539485</td>\n",
       "      <td>0.579950</td>\n",
       "      <td>0.575516</td>\n",
       "      <td>0.548850</td>\n",
       "      <td>...</td>\n",
       "      <td>0.530703</td>\n",
       "      <td>0.523285</td>\n",
       "      <td>0.555768</td>\n",
       "      <td>0.570482</td>\n",
       "      <td>0.566407</td>\n",
       "      <td>0.568477</td>\n",
       "      <td>0.567182</td>\n",
       "      <td>0.582249</td>\n",
       "      <td>0.594740</td>\n",
       "      <td>0.541225</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Coxsackievirus B5</th>\n",
       "      <td>0.516603</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.513568</td>\n",
       "      <td>0.570859</td>\n",
       "      <td>0.557930</td>\n",
       "      <td>0.516581</td>\n",
       "      <td>0.488933</td>\n",
       "      <td>0.542364</td>\n",
       "      <td>0.527871</td>\n",
       "      <td>0.500370</td>\n",
       "      <td>...</td>\n",
       "      <td>0.541211</td>\n",
       "      <td>0.523202</td>\n",
       "      <td>0.540989</td>\n",
       "      <td>0.553558</td>\n",
       "      <td>0.555460</td>\n",
       "      <td>0.554665</td>\n",
       "      <td>0.554807</td>\n",
       "      <td>0.510400</td>\n",
       "      <td>0.525899</td>\n",
       "      <td>0.501666</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Ebola virus</th>\n",
       "      <td>0.532395</td>\n",
       "      <td>0.513568</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.503441</td>\n",
       "      <td>0.498397</td>\n",
       "      <td>0.509264</td>\n",
       "      <td>0.535986</td>\n",
       "      <td>0.536519</td>\n",
       "      <td>0.551883</td>\n",
       "      <td>0.529696</td>\n",
       "      <td>...</td>\n",
       "      <td>0.539395</td>\n",
       "      <td>0.520057</td>\n",
       "      <td>0.557383</td>\n",
       "      <td>0.559995</td>\n",
       "      <td>0.559266</td>\n",
       "      <td>0.558302</td>\n",
       "      <td>0.562622</td>\n",
       "      <td>0.542935</td>\n",
       "      <td>0.548989</td>\n",
       "      <td>0.520352</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Enterovirus D</th>\n",
       "      <td>0.519898</td>\n",
       "      <td>0.570859</td>\n",
       "      <td>0.503441</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.559862</td>\n",
       "      <td>0.522836</td>\n",
       "      <td>0.474324</td>\n",
       "      <td>0.530538</td>\n",
       "      <td>0.520856</td>\n",
       "      <td>0.524424</td>\n",
       "      <td>...</td>\n",
       "      <td>0.513799</td>\n",
       "      <td>0.503035</td>\n",
       "      <td>0.539165</td>\n",
       "      <td>0.538074</td>\n",
       "      <td>0.539970</td>\n",
       "      <td>0.538614</td>\n",
       "      <td>0.541834</td>\n",
       "      <td>0.538473</td>\n",
       "      <td>0.539484</td>\n",
       "      <td>0.488926</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Enterovirus J</th>\n",
       "      <td>0.508609</td>\n",
       "      <td>0.557930</td>\n",
       "      <td>0.498397</td>\n",
       "      <td>0.559862</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.506899</td>\n",
       "      <td>0.484325</td>\n",
       "      <td>0.502548</td>\n",
       "      <td>0.504797</td>\n",
       "      <td>0.499448</td>\n",
       "      <td>...</td>\n",
       "      <td>0.522267</td>\n",
       "      <td>0.527416</td>\n",
       "      <td>0.548926</td>\n",
       "      <td>0.533067</td>\n",
       "      <td>0.534977</td>\n",
       "      <td>0.533763</td>\n",
       "      <td>0.532723</td>\n",
       "      <td>0.505114</td>\n",
       "      <td>0.510359</td>\n",
       "      <td>0.502136</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HBV</th>\n",
       "      <td>0.521714</td>\n",
       "      <td>0.516581</td>\n",
       "      <td>0.509264</td>\n",
       "      <td>0.522836</td>\n",
       "      <td>0.506899</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.509182</td>\n",
       "      <td>0.538787</td>\n",
       "      <td>0.544751</td>\n",
       "      <td>0.520635</td>\n",
       "      <td>...</td>\n",
       "      <td>0.527798</td>\n",
       "      <td>0.513848</td>\n",
       "      <td>0.522710</td>\n",
       "      <td>0.525323</td>\n",
       "      <td>0.525233</td>\n",
       "      <td>0.526006</td>\n",
       "      <td>0.524441</td>\n",
       "      <td>0.534670</td>\n",
       "      <td>0.537287</td>\n",
       "      <td>0.526243</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HCV</th>\n",
       "      <td>0.539485</td>\n",
       "      <td>0.488933</td>\n",
       "      <td>0.535986</td>\n",
       "      <td>0.474324</td>\n",
       "      <td>0.484325</td>\n",
       "      <td>0.509182</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.601197</td>\n",
       "      <td>0.610380</td>\n",
       "      <td>0.565284</td>\n",
       "      <td>...</td>\n",
       "      <td>0.529315</td>\n",
       "      <td>0.525334</td>\n",
       "      <td>0.533091</td>\n",
       "      <td>0.533642</td>\n",
       "      <td>0.517213</td>\n",
       "      <td>0.521010</td>\n",
       "      <td>0.517438</td>\n",
       "      <td>0.555293</td>\n",
       "      <td>0.552597</td>\n",
       "      <td>0.537866</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-1</th>\n",
       "      <td>0.579950</td>\n",
       "      <td>0.542364</td>\n",
       "      <td>0.536519</td>\n",
       "      <td>0.530538</td>\n",
       "      <td>0.502548</td>\n",
       "      <td>0.538787</td>\n",
       "      <td>0.601197</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.923709</td>\n",
       "      <td>0.664674</td>\n",
       "      <td>...</td>\n",
       "      <td>0.561140</td>\n",
       "      <td>0.533397</td>\n",
       "      <td>0.590993</td>\n",
       "      <td>0.583255</td>\n",
       "      <td>0.579309</td>\n",
       "      <td>0.581256</td>\n",
       "      <td>0.579313</td>\n",
       "      <td>0.620861</td>\n",
       "      <td>0.630542</td>\n",
       "      <td>0.546510</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-2</th>\n",
       "      <td>0.575516</td>\n",
       "      <td>0.527871</td>\n",
       "      <td>0.551883</td>\n",
       "      <td>0.520856</td>\n",
       "      <td>0.504797</td>\n",
       "      <td>0.544751</td>\n",
       "      <td>0.610380</td>\n",
       "      <td>0.923709</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.654162</td>\n",
       "      <td>...</td>\n",
       "      <td>0.562328</td>\n",
       "      <td>0.533808</td>\n",
       "      <td>0.588871</td>\n",
       "      <td>0.585227</td>\n",
       "      <td>0.580517</td>\n",
       "      <td>0.583673</td>\n",
       "      <td>0.582250</td>\n",
       "      <td>0.621845</td>\n",
       "      <td>0.632663</td>\n",
       "      <td>0.555958</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-3</th>\n",
       "      <td>0.548850</td>\n",
       "      <td>0.500370</td>\n",
       "      <td>0.529696</td>\n",
       "      <td>0.524424</td>\n",
       "      <td>0.499448</td>\n",
       "      <td>0.520635</td>\n",
       "      <td>0.565284</td>\n",
       "      <td>0.664674</td>\n",
       "      <td>0.654162</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>...</td>\n",
       "      <td>0.514074</td>\n",
       "      <td>0.555458</td>\n",
       "      <td>0.519492</td>\n",
       "      <td>0.560829</td>\n",
       "      <td>0.559773</td>\n",
       "      <td>0.559815</td>\n",
       "      <td>0.559557</td>\n",
       "      <td>0.605856</td>\n",
       "      <td>0.625449</td>\n",
       "      <td>0.538801</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-4</th>\n",
       "      <td>0.556191</td>\n",
       "      <td>0.521696</td>\n",
       "      <td>0.528878</td>\n",
       "      <td>0.528164</td>\n",
       "      <td>0.544281</td>\n",
       "      <td>0.518547</td>\n",
       "      <td>0.562101</td>\n",
       "      <td>0.751015</td>\n",
       "      <td>0.763389</td>\n",
       "      <td>0.639311</td>\n",
       "      <td>...</td>\n",
       "      <td>0.536755</td>\n",
       "      <td>0.537795</td>\n",
       "      <td>0.581425</td>\n",
       "      <td>0.582750</td>\n",
       "      <td>0.580525</td>\n",
       "      <td>0.583394</td>\n",
       "      <td>0.582377</td>\n",
       "      <td>0.608974</td>\n",
       "      <td>0.624289</td>\n",
       "      <td>0.535054</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-5</th>\n",
       "      <td>0.603756</td>\n",
       "      <td>0.536704</td>\n",
       "      <td>0.573636</td>\n",
       "      <td>0.522022</td>\n",
       "      <td>0.512548</td>\n",
       "      <td>0.552126</td>\n",
       "      <td>0.622329</td>\n",
       "      <td>0.805508</td>\n",
       "      <td>0.832868</td>\n",
       "      <td>0.634040</td>\n",
       "      <td>...</td>\n",
       "      <td>0.576293</td>\n",
       "      <td>0.542026</td>\n",
       "      <td>0.610185</td>\n",
       "      <td>0.604332</td>\n",
       "      <td>0.596685</td>\n",
       "      <td>0.601650</td>\n",
       "      <td>0.601502</td>\n",
       "      <td>0.669318</td>\n",
       "      <td>0.686044</td>\n",
       "      <td>0.576288</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-6</th>\n",
       "      <td>0.545105</td>\n",
       "      <td>0.497999</td>\n",
       "      <td>0.537894</td>\n",
       "      <td>0.498315</td>\n",
       "      <td>0.496539</td>\n",
       "      <td>0.524471</td>\n",
       "      <td>0.568921</td>\n",
       "      <td>0.628677</td>\n",
       "      <td>0.629655</td>\n",
       "      <td>0.634080</td>\n",
       "      <td>...</td>\n",
       "      <td>0.511283</td>\n",
       "      <td>0.530657</td>\n",
       "      <td>0.544347</td>\n",
       "      <td>0.532837</td>\n",
       "      <td>0.529684</td>\n",
       "      <td>0.531054</td>\n",
       "      <td>0.530737</td>\n",
       "      <td>0.587750</td>\n",
       "      <td>0.600244</td>\n",
       "      <td>0.551489</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-8</th>\n",
       "      <td>0.585898</td>\n",
       "      <td>0.544797</td>\n",
       "      <td>0.546030</td>\n",
       "      <td>0.536158</td>\n",
       "      <td>0.531798</td>\n",
       "      <td>0.528193</td>\n",
       "      <td>0.583633</td>\n",
       "      <td>0.743176</td>\n",
       "      <td>0.744011</td>\n",
       "      <td>0.650543</td>\n",
       "      <td>...</td>\n",
       "      <td>0.536298</td>\n",
       "      <td>0.533905</td>\n",
       "      <td>0.576323</td>\n",
       "      <td>0.560440</td>\n",
       "      <td>0.556537</td>\n",
       "      <td>0.558067</td>\n",
       "      <td>0.558973</td>\n",
       "      <td>0.634755</td>\n",
       "      <td>0.663804</td>\n",
       "      <td>0.562551</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HIV-1</th>\n",
       "      <td>0.527765</td>\n",
       "      <td>0.490831</td>\n",
       "      <td>0.535352</td>\n",
       "      <td>0.525733</td>\n",
       "      <td>0.517266</td>\n",
       "      <td>0.502090</td>\n",
       "      <td>0.521066</td>\n",
       "      <td>0.547129</td>\n",
       "      <td>0.564710</td>\n",
       "      <td>0.522266</td>\n",
       "      <td>...</td>\n",
       "      <td>0.518055</td>\n",
       "      <td>0.516068</td>\n",
       "      <td>0.564588</td>\n",
       "      <td>0.545504</td>\n",
       "      <td>0.546236</td>\n",
       "      <td>0.544464</td>\n",
       "      <td>0.546186</td>\n",
       "      <td>0.563069</td>\n",
       "      <td>0.576860</td>\n",
       "      <td>0.537206</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HIV-2</th>\n",
       "      <td>0.550270</td>\n",
       "      <td>0.506106</td>\n",
       "      <td>0.526720</td>\n",
       "      <td>0.508127</td>\n",
       "      <td>0.518558</td>\n",
       "      <td>0.526467</td>\n",
       "      <td>0.518988</td>\n",
       "      <td>0.549193</td>\n",
       "      <td>0.568534</td>\n",
       "      <td>0.562429</td>\n",
       "      <td>...</td>\n",
       "      <td>0.515225</td>\n",
       "      <td>0.515360</td>\n",
       "      <td>0.545250</td>\n",
       "      <td>0.549069</td>\n",
       "      <td>0.548765</td>\n",
       "      <td>0.550746</td>\n",
       "      <td>0.550547</td>\n",
       "      <td>0.558640</td>\n",
       "      <td>0.568388</td>\n",
       "      <td>0.519396</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPIV-2</th>\n",
       "      <td>0.500118</td>\n",
       "      <td>0.505537</td>\n",
       "      <td>0.558169</td>\n",
       "      <td>0.497506</td>\n",
       "      <td>0.495492</td>\n",
       "      <td>0.506574</td>\n",
       "      <td>0.525639</td>\n",
       "      <td>0.547037</td>\n",
       "      <td>0.567750</td>\n",
       "      <td>0.532054</td>\n",
       "      <td>...</td>\n",
       "      <td>0.570627</td>\n",
       "      <td>0.546678</td>\n",
       "      <td>0.542142</td>\n",
       "      <td>0.549142</td>\n",
       "      <td>0.546931</td>\n",
       "      <td>0.548693</td>\n",
       "      <td>0.549756</td>\n",
       "      <td>0.547799</td>\n",
       "      <td>0.560852</td>\n",
       "      <td>0.527757</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPIV-3</th>\n",
       "      <td>0.530805</td>\n",
       "      <td>0.510299</td>\n",
       "      <td>0.525593</td>\n",
       "      <td>0.524923</td>\n",
       "      <td>0.519557</td>\n",
       "      <td>0.497884</td>\n",
       "      <td>0.505323</td>\n",
       "      <td>0.549225</td>\n",
       "      <td>0.557101</td>\n",
       "      <td>0.529184</td>\n",
       "      <td>...</td>\n",
       "      <td>0.557822</td>\n",
       "      <td>0.529475</td>\n",
       "      <td>0.541224</td>\n",
       "      <td>0.558373</td>\n",
       "      <td>0.558016</td>\n",
       "      <td>0.559024</td>\n",
       "      <td>0.558932</td>\n",
       "      <td>0.529867</td>\n",
       "      <td>0.544899</td>\n",
       "      <td>0.526766</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPV</th>\n",
       "      <td>0.511945</td>\n",
       "      <td>0.501181</td>\n",
       "      <td>0.529703</td>\n",
       "      <td>0.497422</td>\n",
       "      <td>0.503524</td>\n",
       "      <td>0.528207</td>\n",
       "      <td>0.523119</td>\n",
       "      <td>0.539370</td>\n",
       "      <td>0.554519</td>\n",
       "      <td>0.588628</td>\n",
       "      <td>...</td>\n",
       "      <td>0.519142</td>\n",
       "      <td>0.498829</td>\n",
       "      <td>0.524642</td>\n",
       "      <td>0.546315</td>\n",
       "      <td>0.545229</td>\n",
       "      <td>0.544783</td>\n",
       "      <td>0.546995</td>\n",
       "      <td>0.541400</td>\n",
       "      <td>0.575034</td>\n",
       "      <td>0.510152</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HRV-A</th>\n",
       "      <td>0.521557</td>\n",
       "      <td>0.557734</td>\n",
       "      <td>0.528037</td>\n",
       "      <td>0.546739</td>\n",
       "      <td>0.562568</td>\n",
       "      <td>0.497736</td>\n",
       "      <td>0.502146</td>\n",
       "      <td>0.557879</td>\n",
       "      <td>0.558792</td>\n",
       "      <td>0.524480</td>\n",
       "      <td>...</td>\n",
       "      <td>0.536252</td>\n",
       "      <td>0.499902</td>\n",
       "      <td>0.546831</td>\n",
       "      <td>0.559648</td>\n",
       "      <td>0.561239</td>\n",
       "      <td>0.560439</td>\n",
       "      <td>0.561794</td>\n",
       "      <td>0.527702</td>\n",
       "      <td>0.537124</td>\n",
       "      <td>0.503093</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HRV-B</th>\n",
       "      <td>0.499875</td>\n",
       "      <td>0.535269</td>\n",
       "      <td>0.514640</td>\n",
       "      <td>0.563810</td>\n",
       "      <td>0.564548</td>\n",
       "      <td>0.507214</td>\n",
       "      <td>0.492007</td>\n",
       "      <td>0.555949</td>\n",
       "      <td>0.546299</td>\n",
       "      <td>0.536300</td>\n",
       "      <td>...</td>\n",
       "      <td>0.504971</td>\n",
       "      <td>0.498305</td>\n",
       "      <td>0.520603</td>\n",
       "      <td>0.518662</td>\n",
       "      <td>0.520916</td>\n",
       "      <td>0.521065</td>\n",
       "      <td>0.522424</td>\n",
       "      <td>0.536627</td>\n",
       "      <td>0.535328</td>\n",
       "      <td>0.503093</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HTLV-1</th>\n",
       "      <td>0.501660</td>\n",
       "      <td>0.493729</td>\n",
       "      <td>0.529036</td>\n",
       "      <td>0.507097</td>\n",
       "      <td>0.509284</td>\n",
       "      <td>0.507088</td>\n",
       "      <td>0.509075</td>\n",
       "      <td>0.548994</td>\n",
       "      <td>0.562491</td>\n",
       "      <td>0.538997</td>\n",
       "      <td>...</td>\n",
       "      <td>0.531234</td>\n",
       "      <td>0.512965</td>\n",
       "      <td>0.520243</td>\n",
       "      <td>0.509667</td>\n",
       "      <td>0.509238</td>\n",
       "      <td>0.510838</td>\n",
       "      <td>0.512258</td>\n",
       "      <td>0.534313</td>\n",
       "      <td>0.543082</td>\n",
       "      <td>0.520954</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Hantaan orthohantavirus</th>\n",
       "      <td>0.521041</td>\n",
       "      <td>0.522319</td>\n",
       "      <td>0.534352</td>\n",
       "      <td>0.508605</td>\n",
       "      <td>0.495211</td>\n",
       "      <td>0.525732</td>\n",
       "      <td>0.511932</td>\n",
       "      <td>0.520780</td>\n",
       "      <td>0.507603</td>\n",
       "      <td>0.478137</td>\n",
       "      <td>...</td>\n",
       "      <td>0.511735</td>\n",
       "      <td>0.500426</td>\n",
       "      <td>0.515701</td>\n",
       "      <td>0.520731</td>\n",
       "      <td>0.520142</td>\n",
       "      <td>0.520124</td>\n",
       "      <td>0.520575</td>\n",
       "      <td>0.518196</td>\n",
       "      <td>0.512523</td>\n",
       "      <td>0.523055</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Hendra virus</th>\n",
       "      <td>0.535607</td>\n",
       "      <td>0.523883</td>\n",
       "      <td>0.553989</td>\n",
       "      <td>0.524192</td>\n",
       "      <td>0.529963</td>\n",
       "      <td>0.525165</td>\n",
       "      <td>0.542898</td>\n",
       "      <td>0.560089</td>\n",
       "      <td>0.567557</td>\n",
       "      <td>0.521381</td>\n",
       "      <td>...</td>\n",
       "      <td>0.614084</td>\n",
       "      <td>0.549513</td>\n",
       "      <td>0.570181</td>\n",
       "      <td>0.558101</td>\n",
       "      <td>0.555472</td>\n",
       "      <td>0.557860</td>\n",
       "      <td>0.556376</td>\n",
       "      <td>0.551098</td>\n",
       "      <td>0.556279</td>\n",
       "      <td>0.522019</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Human adenovirus</th>\n",
       "      <td>0.569519</td>\n",
       "      <td>0.498210</td>\n",
       "      <td>0.546800</td>\n",
       "      <td>0.522306</td>\n",
       "      <td>0.491636</td>\n",
       "      <td>0.526842</td>\n",
       "      <td>0.606443</td>\n",
       "      <td>0.722914</td>\n",
       "      <td>0.745194</td>\n",
       "      <td>0.630264</td>\n",
       "      <td>...</td>\n",
       "      <td>0.539682</td>\n",
       "      <td>0.532778</td>\n",
       "      <td>0.569111</td>\n",
       "      <td>0.558859</td>\n",
       "      <td>0.552388</td>\n",
       "      <td>0.557004</td>\n",
       "      <td>0.556788</td>\n",
       "      <td>0.606433</td>\n",
       "      <td>0.634814</td>\n",
       "      <td>0.539465</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Human polyomavirus</th>\n",
       "      <td>0.525485</td>\n",
       "      <td>0.515644</td>\n",
       "      <td>0.537408</td>\n",
       "      <td>0.511688</td>\n",
       "      <td>0.485437</td>\n",
       "      <td>0.536040</td>\n",
       "      <td>0.522992</td>\n",
       "      <td>0.556156</td>\n",
       "      <td>0.565274</td>\n",
       "      <td>0.560539</td>\n",
       "      <td>...</td>\n",
       "      <td>0.533111</td>\n",
       "      <td>0.501263</td>\n",
       "      <td>0.525851</td>\n",
       "      <td>0.544628</td>\n",
       "      <td>0.545269</td>\n",
       "      <td>0.544169</td>\n",
       "      <td>0.545317</td>\n",
       "      <td>0.552531</td>\n",
       "      <td>0.553858</td>\n",
       "      <td>0.534483</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza A virus</th>\n",
       "      <td>0.505682</td>\n",
       "      <td>0.512410</td>\n",
       "      <td>0.502796</td>\n",
       "      <td>0.521183</td>\n",
       "      <td>0.515899</td>\n",
       "      <td>0.505161</td>\n",
       "      <td>0.492594</td>\n",
       "      <td>0.503788</td>\n",
       "      <td>0.514423</td>\n",
       "      <td>0.503637</td>\n",
       "      <td>...</td>\n",
       "      <td>0.526910</td>\n",
       "      <td>0.506141</td>\n",
       "      <td>0.524090</td>\n",
       "      <td>0.500943</td>\n",
       "      <td>0.499039</td>\n",
       "      <td>0.501776</td>\n",
       "      <td>0.501501</td>\n",
       "      <td>0.510801</td>\n",
       "      <td>0.532387</td>\n",
       "      <td>0.522643</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza B virus</th>\n",
       "      <td>0.507271</td>\n",
       "      <td>0.514054</td>\n",
       "      <td>0.535551</td>\n",
       "      <td>0.522278</td>\n",
       "      <td>0.533802</td>\n",
       "      <td>0.509814</td>\n",
       "      <td>0.491391</td>\n",
       "      <td>0.520589</td>\n",
       "      <td>0.526030</td>\n",
       "      <td>0.511440</td>\n",
       "      <td>...</td>\n",
       "      <td>0.534239</td>\n",
       "      <td>0.515936</td>\n",
       "      <td>0.579757</td>\n",
       "      <td>0.563785</td>\n",
       "      <td>0.566879</td>\n",
       "      <td>0.566565</td>\n",
       "      <td>0.567198</td>\n",
       "      <td>0.571046</td>\n",
       "      <td>0.591862</td>\n",
       "      <td>0.526752</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza C virus</th>\n",
       "      <td>0.533277</td>\n",
       "      <td>0.495948</td>\n",
       "      <td>0.533297</td>\n",
       "      <td>0.537011</td>\n",
       "      <td>0.541125</td>\n",
       "      <td>0.521881</td>\n",
       "      <td>0.503351</td>\n",
       "      <td>0.538163</td>\n",
       "      <td>0.540882</td>\n",
       "      <td>0.551409</td>\n",
       "      <td>...</td>\n",
       "      <td>0.538158</td>\n",
       "      <td>0.496256</td>\n",
       "      <td>0.543968</td>\n",
       "      <td>0.533582</td>\n",
       "      <td>0.535841</td>\n",
       "      <td>0.534794</td>\n",
       "      <td>0.533688</td>\n",
       "      <td>0.554829</td>\n",
       "      <td>0.571070</td>\n",
       "      <td>0.514296</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Lassa mammarenavirus</th>\n",
       "      <td>0.512534</td>\n",
       "      <td>0.517264</td>\n",
       "      <td>0.535780</td>\n",
       "      <td>0.512673</td>\n",
       "      <td>0.513018</td>\n",
       "      <td>0.505781</td>\n",
       "      <td>0.503310</td>\n",
       "      <td>0.507440</td>\n",
       "      <td>0.521164</td>\n",
       "      <td>0.504545</td>\n",
       "      <td>...</td>\n",
       "      <td>0.530432</td>\n",
       "      <td>0.509559</td>\n",
       "      <td>0.527542</td>\n",
       "      <td>0.549456</td>\n",
       "      <td>0.550245</td>\n",
       "      <td>0.551658</td>\n",
       "      <td>0.550711</td>\n",
       "      <td>0.549818</td>\n",
       "      <td>0.555074</td>\n",
       "      <td>0.520639</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MCV</th>\n",
       "      <td>0.555728</td>\n",
       "      <td>0.519451</td>\n",
       "      <td>0.553710</td>\n",
       "      <td>0.493761</td>\n",
       "      <td>0.534010</td>\n",
       "      <td>0.540400</td>\n",
       "      <td>0.626379</td>\n",
       "      <td>0.714524</td>\n",
       "      <td>0.759096</td>\n",
       "      <td>0.552874</td>\n",
       "      <td>...</td>\n",
       "      <td>0.538342</td>\n",
       "      <td>0.506792</td>\n",
       "      <td>0.577606</td>\n",
       "      <td>0.550753</td>\n",
       "      <td>0.544637</td>\n",
       "      <td>0.547963</td>\n",
       "      <td>0.547898</td>\n",
       "      <td>0.551336</td>\n",
       "      <td>0.560594</td>\n",
       "      <td>0.544827</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MERS-CoV</th>\n",
       "      <td>0.544573</td>\n",
       "      <td>0.529717</td>\n",
       "      <td>0.531314</td>\n",
       "      <td>0.520923</td>\n",
       "      <td>0.542819</td>\n",
       "      <td>0.518922</td>\n",
       "      <td>0.510463</td>\n",
       "      <td>0.571731</td>\n",
       "      <td>0.569016</td>\n",
       "      <td>0.540457</td>\n",
       "      <td>...</td>\n",
       "      <td>0.540172</td>\n",
       "      <td>0.545235</td>\n",
       "      <td>0.643252</td>\n",
       "      <td>0.644644</td>\n",
       "      <td>0.644450</td>\n",
       "      <td>0.644025</td>\n",
       "      <td>0.643232</td>\n",
       "      <td>0.586605</td>\n",
       "      <td>0.600338</td>\n",
       "      <td>0.556616</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Nipah virus</th>\n",
       "      <td>0.530703</td>\n",
       "      <td>0.541211</td>\n",
       "      <td>0.539395</td>\n",
       "      <td>0.513799</td>\n",
       "      <td>0.522267</td>\n",
       "      <td>0.527798</td>\n",
       "      <td>0.529315</td>\n",
       "      <td>0.561140</td>\n",
       "      <td>0.562328</td>\n",
       "      <td>0.514074</td>\n",
       "      <td>...</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.547071</td>\n",
       "      <td>0.573436</td>\n",
       "      <td>0.566552</td>\n",
       "      <td>0.562773</td>\n",
       "      <td>0.565167</td>\n",
       "      <td>0.563635</td>\n",
       "      <td>0.558850</td>\n",
       "      <td>0.573780</td>\n",
       "      <td>0.532405</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>RSV</th>\n",
       "      <td>0.523285</td>\n",
       "      <td>0.523202</td>\n",
       "      <td>0.520057</td>\n",
       "      <td>0.503035</td>\n",
       "      <td>0.527416</td>\n",
       "      <td>0.513848</td>\n",
       "      <td>0.525334</td>\n",
       "      <td>0.533397</td>\n",
       "      <td>0.533808</td>\n",
       "      <td>0.555458</td>\n",
       "      <td>...</td>\n",
       "      <td>0.547071</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.544726</td>\n",
       "      <td>0.546554</td>\n",
       "      <td>0.547552</td>\n",
       "      <td>0.547076</td>\n",
       "      <td>0.545684</td>\n",
       "      <td>0.531494</td>\n",
       "      <td>0.549620</td>\n",
       "      <td>0.518027</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV</th>\n",
       "      <td>0.555768</td>\n",
       "      <td>0.540989</td>\n",
       "      <td>0.557383</td>\n",
       "      <td>0.539165</td>\n",
       "      <td>0.548926</td>\n",
       "      <td>0.522710</td>\n",
       "      <td>0.533091</td>\n",
       "      <td>0.590993</td>\n",
       "      <td>0.588871</td>\n",
       "      <td>0.519492</td>\n",
       "      <td>...</td>\n",
       "      <td>0.573436</td>\n",
       "      <td>0.544726</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.728346</td>\n",
       "      <td>0.726454</td>\n",
       "      <td>0.729252</td>\n",
       "      <td>0.726702</td>\n",
       "      <td>0.600216</td>\n",
       "      <td>0.626422</td>\n",
       "      <td>0.558093</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2</th>\n",
       "      <td>0.570482</td>\n",
       "      <td>0.553558</td>\n",
       "      <td>0.559995</td>\n",
       "      <td>0.538074</td>\n",
       "      <td>0.533067</td>\n",
       "      <td>0.525323</td>\n",
       "      <td>0.533642</td>\n",
       "      <td>0.583255</td>\n",
       "      <td>0.585227</td>\n",
       "      <td>0.560829</td>\n",
       "      <td>...</td>\n",
       "      <td>0.566552</td>\n",
       "      <td>0.546554</td>\n",
       "      <td>0.728346</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.997327</td>\n",
       "      <td>0.998166</td>\n",
       "      <td>0.996010</td>\n",
       "      <td>0.581480</td>\n",
       "      <td>0.603974</td>\n",
       "      <td>0.556155</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: april</th>\n",
       "      <td>0.566407</td>\n",
       "      <td>0.555460</td>\n",
       "      <td>0.559266</td>\n",
       "      <td>0.539970</td>\n",
       "      <td>0.534977</td>\n",
       "      <td>0.525233</td>\n",
       "      <td>0.517213</td>\n",
       "      <td>0.579309</td>\n",
       "      <td>0.580517</td>\n",
       "      <td>0.559773</td>\n",
       "      <td>...</td>\n",
       "      <td>0.562773</td>\n",
       "      <td>0.547552</td>\n",
       "      <td>0.726454</td>\n",
       "      <td>0.997327</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.997035</td>\n",
       "      <td>0.996931</td>\n",
       "      <td>0.578888</td>\n",
       "      <td>0.601514</td>\n",
       "      <td>0.554789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: feb</th>\n",
       "      <td>0.568477</td>\n",
       "      <td>0.554665</td>\n",
       "      <td>0.558302</td>\n",
       "      <td>0.538614</td>\n",
       "      <td>0.533763</td>\n",
       "      <td>0.526006</td>\n",
       "      <td>0.521010</td>\n",
       "      <td>0.581256</td>\n",
       "      <td>0.583673</td>\n",
       "      <td>0.559815</td>\n",
       "      <td>...</td>\n",
       "      <td>0.565167</td>\n",
       "      <td>0.547076</td>\n",
       "      <td>0.729252</td>\n",
       "      <td>0.998166</td>\n",
       "      <td>0.997035</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.995644</td>\n",
       "      <td>0.581332</td>\n",
       "      <td>0.604205</td>\n",
       "      <td>0.554988</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: june</th>\n",
       "      <td>0.567182</td>\n",
       "      <td>0.554807</td>\n",
       "      <td>0.562622</td>\n",
       "      <td>0.541834</td>\n",
       "      <td>0.532723</td>\n",
       "      <td>0.524441</td>\n",
       "      <td>0.517438</td>\n",
       "      <td>0.579313</td>\n",
       "      <td>0.582250</td>\n",
       "      <td>0.559557</td>\n",
       "      <td>...</td>\n",
       "      <td>0.563635</td>\n",
       "      <td>0.545684</td>\n",
       "      <td>0.726702</td>\n",
       "      <td>0.996010</td>\n",
       "      <td>0.996931</td>\n",
       "      <td>0.995644</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.582344</td>\n",
       "      <td>0.605407</td>\n",
       "      <td>0.553905</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>VV</th>\n",
       "      <td>0.582249</td>\n",
       "      <td>0.510400</td>\n",
       "      <td>0.542935</td>\n",
       "      <td>0.538473</td>\n",
       "      <td>0.505114</td>\n",
       "      <td>0.534670</td>\n",
       "      <td>0.555293</td>\n",
       "      <td>0.620861</td>\n",
       "      <td>0.621845</td>\n",
       "      <td>0.605856</td>\n",
       "      <td>...</td>\n",
       "      <td>0.558850</td>\n",
       "      <td>0.531494</td>\n",
       "      <td>0.600216</td>\n",
       "      <td>0.581480</td>\n",
       "      <td>0.578888</td>\n",
       "      <td>0.581332</td>\n",
       "      <td>0.582344</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.921251</td>\n",
       "      <td>0.558802</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Variola virus</th>\n",
       "      <td>0.594740</td>\n",
       "      <td>0.525899</td>\n",
       "      <td>0.548989</td>\n",
       "      <td>0.539484</td>\n",
       "      <td>0.510359</td>\n",
       "      <td>0.537287</td>\n",
       "      <td>0.552597</td>\n",
       "      <td>0.630542</td>\n",
       "      <td>0.632663</td>\n",
       "      <td>0.625449</td>\n",
       "      <td>...</td>\n",
       "      <td>0.573780</td>\n",
       "      <td>0.549620</td>\n",
       "      <td>0.626422</td>\n",
       "      <td>0.603974</td>\n",
       "      <td>0.601514</td>\n",
       "      <td>0.604205</td>\n",
       "      <td>0.605407</td>\n",
       "      <td>0.921251</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.560636</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zika virus</th>\n",
       "      <td>0.541225</td>\n",
       "      <td>0.501666</td>\n",
       "      <td>0.520352</td>\n",
       "      <td>0.488926</td>\n",
       "      <td>0.502136</td>\n",
       "      <td>0.526243</td>\n",
       "      <td>0.537866</td>\n",
       "      <td>0.546510</td>\n",
       "      <td>0.555958</td>\n",
       "      <td>0.538801</td>\n",
       "      <td>...</td>\n",
       "      <td>0.532405</td>\n",
       "      <td>0.518027</td>\n",
       "      <td>0.558093</td>\n",
       "      <td>0.556155</td>\n",
       "      <td>0.554789</td>\n",
       "      <td>0.554988</td>\n",
       "      <td>0.553905</td>\n",
       "      <td>0.558802</td>\n",
       "      <td>0.560636</td>\n",
       "      <td>1.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>42 rows × 42 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                         Chikungunya virus  Coxsackievirus B5  Ebola virus  \\\n",
       "d2star                                                                       \n",
       "Chikungunya virus                 1.000000           0.516603     0.532395   \n",
       "Coxsackievirus B5                 0.516603           1.000000     0.513568   \n",
       "Ebola virus                       0.532395           0.513568     1.000000   \n",
       "Enterovirus D                     0.519898           0.570859     0.503441   \n",
       "Enterovirus J                     0.508609           0.557930     0.498397   \n",
       "HBV                               0.521714           0.516581     0.509264   \n",
       "HCV                               0.539485           0.488933     0.535986   \n",
       "HHV-1                             0.579950           0.542364     0.536519   \n",
       "HHV-2                             0.575516           0.527871     0.551883   \n",
       "HHV-3                             0.548850           0.500370     0.529696   \n",
       "HHV-4                             0.556191           0.521696     0.528878   \n",
       "HHV-5                             0.603756           0.536704     0.573636   \n",
       "HHV-6                             0.545105           0.497999     0.537894   \n",
       "HHV-8                             0.585898           0.544797     0.546030   \n",
       "HIV-1                             0.527765           0.490831     0.535352   \n",
       "HIV-2                             0.550270           0.506106     0.526720   \n",
       "HPIV-2                            0.500118           0.505537     0.558169   \n",
       "HPIV-3                            0.530805           0.510299     0.525593   \n",
       "HPV                               0.511945           0.501181     0.529703   \n",
       "HRV-A                             0.521557           0.557734     0.528037   \n",
       "HRV-B                             0.499875           0.535269     0.514640   \n",
       "HTLV-1                            0.501660           0.493729     0.529036   \n",
       "Hantaan orthohantavirus           0.521041           0.522319     0.534352   \n",
       "Hendra virus                      0.535607           0.523883     0.553989   \n",
       "Human adenovirus                  0.569519           0.498210     0.546800   \n",
       "Human polyomavirus                0.525485           0.515644     0.537408   \n",
       "Influenza A virus                 0.505682           0.512410     0.502796   \n",
       "Influenza B virus                 0.507271           0.514054     0.535551   \n",
       "Influenza C virus                 0.533277           0.495948     0.533297   \n",
       "Lassa mammarenavirus              0.512534           0.517264     0.535780   \n",
       "MCV                               0.555728           0.519451     0.553710   \n",
       "MERS-CoV                          0.544573           0.529717     0.531314   \n",
       "Nipah virus                       0.530703           0.541211     0.539395   \n",
       "RSV                               0.523285           0.523202     0.520057   \n",
       "SARS-CoV                          0.555768           0.540989     0.557383   \n",
       "SARS-CoV-2                        0.570482           0.553558     0.559995   \n",
       "SARS-CoV-2: april                 0.566407           0.555460     0.559266   \n",
       "SARS-CoV-2: feb                   0.568477           0.554665     0.558302   \n",
       "SARS-CoV-2: june                  0.567182           0.554807     0.562622   \n",
       "VV                                0.582249           0.510400     0.542935   \n",
       "Variola virus                     0.594740           0.525899     0.548989   \n",
       "Zika virus                        0.541225           0.501666     0.520352   \n",
       "\n",
       "                         Enterovirus D  Enterovirus J       HBV       HCV  \\\n",
       "d2star                                                                      \n",
       "Chikungunya virus             0.519898       0.508609  0.521714  0.539485   \n",
       "Coxsackievirus B5             0.570859       0.557930  0.516581  0.488933   \n",
       "Ebola virus                   0.503441       0.498397  0.509264  0.535986   \n",
       "Enterovirus D                 1.000000       0.559862  0.522836  0.474324   \n",
       "Enterovirus J                 0.559862       1.000000  0.506899  0.484325   \n",
       "HBV                           0.522836       0.506899  1.000000  0.509182   \n",
       "HCV                           0.474324       0.484325  0.509182  1.000000   \n",
       "HHV-1                         0.530538       0.502548  0.538787  0.601197   \n",
       "HHV-2                         0.520856       0.504797  0.544751  0.610380   \n",
       "HHV-3                         0.524424       0.499448  0.520635  0.565284   \n",
       "HHV-4                         0.528164       0.544281  0.518547  0.562101   \n",
       "HHV-5                         0.522022       0.512548  0.552126  0.622329   \n",
       "HHV-6                         0.498315       0.496539  0.524471  0.568921   \n",
       "HHV-8                         0.536158       0.531798  0.528193  0.583633   \n",
       "HIV-1                         0.525733       0.517266  0.502090  0.521066   \n",
       "HIV-2                         0.508127       0.518558  0.526467  0.518988   \n",
       "HPIV-2                        0.497506       0.495492  0.506574  0.525639   \n",
       "HPIV-3                        0.524923       0.519557  0.497884  0.505323   \n",
       "HPV                           0.497422       0.503524  0.528207  0.523119   \n",
       "HRV-A                         0.546739       0.562568  0.497736  0.502146   \n",
       "HRV-B                         0.563810       0.564548  0.507214  0.492007   \n",
       "HTLV-1                        0.507097       0.509284  0.507088  0.509075   \n",
       "Hantaan orthohantavirus       0.508605       0.495211  0.525732  0.511932   \n",
       "Hendra virus                  0.524192       0.529963  0.525165  0.542898   \n",
       "Human adenovirus              0.522306       0.491636  0.526842  0.606443   \n",
       "Human polyomavirus            0.511688       0.485437  0.536040  0.522992   \n",
       "Influenza A virus             0.521183       0.515899  0.505161  0.492594   \n",
       "Influenza B virus             0.522278       0.533802  0.509814  0.491391   \n",
       "Influenza C virus             0.537011       0.541125  0.521881  0.503351   \n",
       "Lassa mammarenavirus          0.512673       0.513018  0.505781  0.503310   \n",
       "MCV                           0.493761       0.534010  0.540400  0.626379   \n",
       "MERS-CoV                      0.520923       0.542819  0.518922  0.510463   \n",
       "Nipah virus                   0.513799       0.522267  0.527798  0.529315   \n",
       "RSV                           0.503035       0.527416  0.513848  0.525334   \n",
       "SARS-CoV                      0.539165       0.548926  0.522710  0.533091   \n",
       "SARS-CoV-2                    0.538074       0.533067  0.525323  0.533642   \n",
       "SARS-CoV-2: april             0.539970       0.534977  0.525233  0.517213   \n",
       "SARS-CoV-2: feb               0.538614       0.533763  0.526006  0.521010   \n",
       "SARS-CoV-2: june              0.541834       0.532723  0.524441  0.517438   \n",
       "VV                            0.538473       0.505114  0.534670  0.555293   \n",
       "Variola virus                 0.539484       0.510359  0.537287  0.552597   \n",
       "Zika virus                    0.488926       0.502136  0.526243  0.537866   \n",
       "\n",
       "                            HHV-1     HHV-2     HHV-3     ...      \\\n",
       "d2star                                                    ...       \n",
       "Chikungunya virus        0.579950  0.575516  0.548850     ...       \n",
       "Coxsackievirus B5        0.542364  0.527871  0.500370     ...       \n",
       "Ebola virus              0.536519  0.551883  0.529696     ...       \n",
       "Enterovirus D            0.530538  0.520856  0.524424     ...       \n",
       "Enterovirus J            0.502548  0.504797  0.499448     ...       \n",
       "HBV                      0.538787  0.544751  0.520635     ...       \n",
       "HCV                      0.601197  0.610380  0.565284     ...       \n",
       "HHV-1                    1.000000  0.923709  0.664674     ...       \n",
       "HHV-2                    0.923709  1.000000  0.654162     ...       \n",
       "HHV-3                    0.664674  0.654162  1.000000     ...       \n",
       "HHV-4                    0.751015  0.763389  0.639311     ...       \n",
       "HHV-5                    0.805508  0.832868  0.634040     ...       \n",
       "HHV-6                    0.628677  0.629655  0.634080     ...       \n",
       "HHV-8                    0.743176  0.744011  0.650543     ...       \n",
       "HIV-1                    0.547129  0.564710  0.522266     ...       \n",
       "HIV-2                    0.549193  0.568534  0.562429     ...       \n",
       "HPIV-2                   0.547037  0.567750  0.532054     ...       \n",
       "HPIV-3                   0.549225  0.557101  0.529184     ...       \n",
       "HPV                      0.539370  0.554519  0.588628     ...       \n",
       "HRV-A                    0.557879  0.558792  0.524480     ...       \n",
       "HRV-B                    0.555949  0.546299  0.536300     ...       \n",
       "HTLV-1                   0.548994  0.562491  0.538997     ...       \n",
       "Hantaan orthohantavirus  0.520780  0.507603  0.478137     ...       \n",
       "Hendra virus             0.560089  0.567557  0.521381     ...       \n",
       "Human adenovirus         0.722914  0.745194  0.630264     ...       \n",
       "Human polyomavirus       0.556156  0.565274  0.560539     ...       \n",
       "Influenza A virus        0.503788  0.514423  0.503637     ...       \n",
       "Influenza B virus        0.520589  0.526030  0.511440     ...       \n",
       "Influenza C virus        0.538163  0.540882  0.551409     ...       \n",
       "Lassa mammarenavirus     0.507440  0.521164  0.504545     ...       \n",
       "MCV                      0.714524  0.759096  0.552874     ...       \n",
       "MERS-CoV                 0.571731  0.569016  0.540457     ...       \n",
       "Nipah virus              0.561140  0.562328  0.514074     ...       \n",
       "RSV                      0.533397  0.533808  0.555458     ...       \n",
       "SARS-CoV                 0.590993  0.588871  0.519492     ...       \n",
       "SARS-CoV-2               0.583255  0.585227  0.560829     ...       \n",
       "SARS-CoV-2: april        0.579309  0.580517  0.559773     ...       \n",
       "SARS-CoV-2: feb          0.581256  0.583673  0.559815     ...       \n",
       "SARS-CoV-2: june         0.579313  0.582250  0.559557     ...       \n",
       "VV                       0.620861  0.621845  0.605856     ...       \n",
       "Variola virus            0.630542  0.632663  0.625449     ...       \n",
       "Zika virus               0.546510  0.555958  0.538801     ...       \n",
       "\n",
       "                         Nipah virus       RSV  SARS-CoV  SARS-CoV-2  \\\n",
       "d2star                                                                 \n",
       "Chikungunya virus           0.530703  0.523285  0.555768    0.570482   \n",
       "Coxsackievirus B5           0.541211  0.523202  0.540989    0.553558   \n",
       "Ebola virus                 0.539395  0.520057  0.557383    0.559995   \n",
       "Enterovirus D               0.513799  0.503035  0.539165    0.538074   \n",
       "Enterovirus J               0.522267  0.527416  0.548926    0.533067   \n",
       "HBV                         0.527798  0.513848  0.522710    0.525323   \n",
       "HCV                         0.529315  0.525334  0.533091    0.533642   \n",
       "HHV-1                       0.561140  0.533397  0.590993    0.583255   \n",
       "HHV-2                       0.562328  0.533808  0.588871    0.585227   \n",
       "HHV-3                       0.514074  0.555458  0.519492    0.560829   \n",
       "HHV-4                       0.536755  0.537795  0.581425    0.582750   \n",
       "HHV-5                       0.576293  0.542026  0.610185    0.604332   \n",
       "HHV-6                       0.511283  0.530657  0.544347    0.532837   \n",
       "HHV-8                       0.536298  0.533905  0.576323    0.560440   \n",
       "HIV-1                       0.518055  0.516068  0.564588    0.545504   \n",
       "HIV-2                       0.515225  0.515360  0.545250    0.549069   \n",
       "HPIV-2                      0.570627  0.546678  0.542142    0.549142   \n",
       "HPIV-3                      0.557822  0.529475  0.541224    0.558373   \n",
       "HPV                         0.519142  0.498829  0.524642    0.546315   \n",
       "HRV-A                       0.536252  0.499902  0.546831    0.559648   \n",
       "HRV-B                       0.504971  0.498305  0.520603    0.518662   \n",
       "HTLV-1                      0.531234  0.512965  0.520243    0.509667   \n",
       "Hantaan orthohantavirus     0.511735  0.500426  0.515701    0.520731   \n",
       "Hendra virus                0.614084  0.549513  0.570181    0.558101   \n",
       "Human adenovirus            0.539682  0.532778  0.569111    0.558859   \n",
       "Human polyomavirus          0.533111  0.501263  0.525851    0.544628   \n",
       "Influenza A virus           0.526910  0.506141  0.524090    0.500943   \n",
       "Influenza B virus           0.534239  0.515936  0.579757    0.563785   \n",
       "Influenza C virus           0.538158  0.496256  0.543968    0.533582   \n",
       "Lassa mammarenavirus        0.530432  0.509559  0.527542    0.549456   \n",
       "MCV                         0.538342  0.506792  0.577606    0.550753   \n",
       "MERS-CoV                    0.540172  0.545235  0.643252    0.644644   \n",
       "Nipah virus                 1.000000  0.547071  0.573436    0.566552   \n",
       "RSV                         0.547071  1.000000  0.544726    0.546554   \n",
       "SARS-CoV                    0.573436  0.544726  1.000000    0.728346   \n",
       "SARS-CoV-2                  0.566552  0.546554  0.728346    1.000000   \n",
       "SARS-CoV-2: april           0.562773  0.547552  0.726454    0.997327   \n",
       "SARS-CoV-2: feb             0.565167  0.547076  0.729252    0.998166   \n",
       "SARS-CoV-2: june            0.563635  0.545684  0.726702    0.996010   \n",
       "VV                          0.558850  0.531494  0.600216    0.581480   \n",
       "Variola virus               0.573780  0.549620  0.626422    0.603974   \n",
       "Zika virus                  0.532405  0.518027  0.558093    0.556155   \n",
       "\n",
       "                         SARS-CoV-2: april  SARS-CoV-2: feb  SARS-CoV-2: june  \\\n",
       "d2star                                                                          \n",
       "Chikungunya virus                 0.566407         0.568477          0.567182   \n",
       "Coxsackievirus B5                 0.555460         0.554665          0.554807   \n",
       "Ebola virus                       0.559266         0.558302          0.562622   \n",
       "Enterovirus D                     0.539970         0.538614          0.541834   \n",
       "Enterovirus J                     0.534977         0.533763          0.532723   \n",
       "HBV                               0.525233         0.526006          0.524441   \n",
       "HCV                               0.517213         0.521010          0.517438   \n",
       "HHV-1                             0.579309         0.581256          0.579313   \n",
       "HHV-2                             0.580517         0.583673          0.582250   \n",
       "HHV-3                             0.559773         0.559815          0.559557   \n",
       "HHV-4                             0.580525         0.583394          0.582377   \n",
       "HHV-5                             0.596685         0.601650          0.601502   \n",
       "HHV-6                             0.529684         0.531054          0.530737   \n",
       "HHV-8                             0.556537         0.558067          0.558973   \n",
       "HIV-1                             0.546236         0.544464          0.546186   \n",
       "HIV-2                             0.548765         0.550746          0.550547   \n",
       "HPIV-2                            0.546931         0.548693          0.549756   \n",
       "HPIV-3                            0.558016         0.559024          0.558932   \n",
       "HPV                               0.545229         0.544783          0.546995   \n",
       "HRV-A                             0.561239         0.560439          0.561794   \n",
       "HRV-B                             0.520916         0.521065          0.522424   \n",
       "HTLV-1                            0.509238         0.510838          0.512258   \n",
       "Hantaan orthohantavirus           0.520142         0.520124          0.520575   \n",
       "Hendra virus                      0.555472         0.557860          0.556376   \n",
       "Human adenovirus                  0.552388         0.557004          0.556788   \n",
       "Human polyomavirus                0.545269         0.544169          0.545317   \n",
       "Influenza A virus                 0.499039         0.501776          0.501501   \n",
       "Influenza B virus                 0.566879         0.566565          0.567198   \n",
       "Influenza C virus                 0.535841         0.534794          0.533688   \n",
       "Lassa mammarenavirus              0.550245         0.551658          0.550711   \n",
       "MCV                               0.544637         0.547963          0.547898   \n",
       "MERS-CoV                          0.644450         0.644025          0.643232   \n",
       "Nipah virus                       0.562773         0.565167          0.563635   \n",
       "RSV                               0.547552         0.547076          0.545684   \n",
       "SARS-CoV                          0.726454         0.729252          0.726702   \n",
       "SARS-CoV-2                        0.997327         0.998166          0.996010   \n",
       "SARS-CoV-2: april                 1.000000         0.997035          0.996931   \n",
       "SARS-CoV-2: feb                   0.997035         1.000000          0.995644   \n",
       "SARS-CoV-2: june                  0.996931         0.995644          1.000000   \n",
       "VV                                0.578888         0.581332          0.582344   \n",
       "Variola virus                     0.601514         0.604205          0.605407   \n",
       "Zika virus                        0.554789         0.554988          0.553905   \n",
       "\n",
       "                               VV  Variola virus  Zika virus  \n",
       "d2star                                                        \n",
       "Chikungunya virus        0.582249       0.594740    0.541225  \n",
       "Coxsackievirus B5        0.510400       0.525899    0.501666  \n",
       "Ebola virus              0.542935       0.548989    0.520352  \n",
       "Enterovirus D            0.538473       0.539484    0.488926  \n",
       "Enterovirus J            0.505114       0.510359    0.502136  \n",
       "HBV                      0.534670       0.537287    0.526243  \n",
       "HCV                      0.555293       0.552597    0.537866  \n",
       "HHV-1                    0.620861       0.630542    0.546510  \n",
       "HHV-2                    0.621845       0.632663    0.555958  \n",
       "HHV-3                    0.605856       0.625449    0.538801  \n",
       "HHV-4                    0.608974       0.624289    0.535054  \n",
       "HHV-5                    0.669318       0.686044    0.576288  \n",
       "HHV-6                    0.587750       0.600244    0.551489  \n",
       "HHV-8                    0.634755       0.663804    0.562551  \n",
       "HIV-1                    0.563069       0.576860    0.537206  \n",
       "HIV-2                    0.558640       0.568388    0.519396  \n",
       "HPIV-2                   0.547799       0.560852    0.527757  \n",
       "HPIV-3                   0.529867       0.544899    0.526766  \n",
       "HPV                      0.541400       0.575034    0.510152  \n",
       "HRV-A                    0.527702       0.537124    0.503093  \n",
       "HRV-B                    0.536627       0.535328    0.503093  \n",
       "HTLV-1                   0.534313       0.543082    0.520954  \n",
       "Hantaan orthohantavirus  0.518196       0.512523    0.523055  \n",
       "Hendra virus             0.551098       0.556279    0.522019  \n",
       "Human adenovirus         0.606433       0.634814    0.539465  \n",
       "Human polyomavirus       0.552531       0.553858    0.534483  \n",
       "Influenza A virus        0.510801       0.532387    0.522643  \n",
       "Influenza B virus        0.571046       0.591862    0.526752  \n",
       "Influenza C virus        0.554829       0.571070    0.514296  \n",
       "Lassa mammarenavirus     0.549818       0.555074    0.520639  \n",
       "MCV                      0.551336       0.560594    0.544827  \n",
       "MERS-CoV                 0.586605       0.600338    0.556616  \n",
       "Nipah virus              0.558850       0.573780    0.532405  \n",
       "RSV                      0.531494       0.549620    0.518027  \n",
       "SARS-CoV                 0.600216       0.626422    0.558093  \n",
       "SARS-CoV-2               0.581480       0.603974    0.556155  \n",
       "SARS-CoV-2: april        0.578888       0.601514    0.554789  \n",
       "SARS-CoV-2: feb          0.581332       0.604205    0.554988  \n",
       "SARS-CoV-2: june         0.582344       0.605407    0.553905  \n",
       "VV                       1.000000       0.921251    0.558802  \n",
       "Variola virus            0.921251       1.000000    0.560636  \n",
       "Zika virus               0.558802       0.560636    1.000000  \n",
       "\n",
       "[42 rows x 42 columns]"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "vir_sim_matrix=vir_sim_matrix.sort_index(axis=1)\n",
    "vir_sim_matrix=vir_sim_matrix.sort_index(axis=0)\n",
    "vir_sim_matrix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>HIV-1</th>\n",
       "      <th>HIV-2</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>d2star</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Chikungunya virus</th>\n",
       "      <td>0.527765</td>\n",
       "      <td>0.550270</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Coxsackievirus B5</th>\n",
       "      <td>0.490831</td>\n",
       "      <td>0.506106</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Ebola virus</th>\n",
       "      <td>0.535352</td>\n",
       "      <td>0.526720</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Enterovirus D</th>\n",
       "      <td>0.525733</td>\n",
       "      <td>0.508127</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Enterovirus J</th>\n",
       "      <td>0.517266</td>\n",
       "      <td>0.518558</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HBV</th>\n",
       "      <td>0.502090</td>\n",
       "      <td>0.526467</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HCV</th>\n",
       "      <td>0.521066</td>\n",
       "      <td>0.518988</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-1</th>\n",
       "      <td>0.547129</td>\n",
       "      <td>0.549193</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-2</th>\n",
       "      <td>0.564710</td>\n",
       "      <td>0.568534</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-3</th>\n",
       "      <td>0.522266</td>\n",
       "      <td>0.562429</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-4</th>\n",
       "      <td>0.557793</td>\n",
       "      <td>0.565254</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-5</th>\n",
       "      <td>0.562552</td>\n",
       "      <td>0.600335</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-6</th>\n",
       "      <td>0.549949</td>\n",
       "      <td>0.542321</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-8</th>\n",
       "      <td>0.557691</td>\n",
       "      <td>0.575266</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HIV-1</th>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.590772</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HIV-2</th>\n",
       "      <td>0.590772</td>\n",
       "      <td>1.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPIV-2</th>\n",
       "      <td>0.515678</td>\n",
       "      <td>0.546993</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPIV-3</th>\n",
       "      <td>0.534535</td>\n",
       "      <td>0.536877</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPV</th>\n",
       "      <td>0.546476</td>\n",
       "      <td>0.545758</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HRV-A</th>\n",
       "      <td>0.509770</td>\n",
       "      <td>0.521404</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HRV-B</th>\n",
       "      <td>0.532117</td>\n",
       "      <td>0.541699</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HTLV-1</th>\n",
       "      <td>0.525771</td>\n",
       "      <td>0.523823</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Hantaan orthohantavirus</th>\n",
       "      <td>0.511566</td>\n",
       "      <td>0.493828</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Hendra virus</th>\n",
       "      <td>0.544229</td>\n",
       "      <td>0.507421</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Human adenovirus</th>\n",
       "      <td>0.537429</td>\n",
       "      <td>0.559144</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Human polyomavirus</th>\n",
       "      <td>0.528119</td>\n",
       "      <td>0.518394</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza A virus</th>\n",
       "      <td>0.497058</td>\n",
       "      <td>0.510926</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza B virus</th>\n",
       "      <td>0.548284</td>\n",
       "      <td>0.551428</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza C virus</th>\n",
       "      <td>0.525313</td>\n",
       "      <td>0.520549</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Lassa mammarenavirus</th>\n",
       "      <td>0.519091</td>\n",
       "      <td>0.510399</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MCV</th>\n",
       "      <td>0.521206</td>\n",
       "      <td>0.578368</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MERS-CoV</th>\n",
       "      <td>0.527246</td>\n",
       "      <td>0.516110</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Nipah virus</th>\n",
       "      <td>0.518055</td>\n",
       "      <td>0.515225</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>RSV</th>\n",
       "      <td>0.516068</td>\n",
       "      <td>0.515360</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV</th>\n",
       "      <td>0.564588</td>\n",
       "      <td>0.545250</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2</th>\n",
       "      <td>0.545504</td>\n",
       "      <td>0.549069</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: april</th>\n",
       "      <td>0.546236</td>\n",
       "      <td>0.548765</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: feb</th>\n",
       "      <td>0.544464</td>\n",
       "      <td>0.550746</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: june</th>\n",
       "      <td>0.546186</td>\n",
       "      <td>0.550547</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>VV</th>\n",
       "      <td>0.563069</td>\n",
       "      <td>0.558640</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Variola virus</th>\n",
       "      <td>0.576860</td>\n",
       "      <td>0.568388</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zika virus</th>\n",
       "      <td>0.537206</td>\n",
       "      <td>0.519396</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                            HIV-1     HIV-2\n",
       "d2star                                     \n",
       "Chikungunya virus        0.527765  0.550270\n",
       "Coxsackievirus B5        0.490831  0.506106\n",
       "Ebola virus              0.535352  0.526720\n",
       "Enterovirus D            0.525733  0.508127\n",
       "Enterovirus J            0.517266  0.518558\n",
       "HBV                      0.502090  0.526467\n",
       "HCV                      0.521066  0.518988\n",
       "HHV-1                    0.547129  0.549193\n",
       "HHV-2                    0.564710  0.568534\n",
       "HHV-3                    0.522266  0.562429\n",
       "HHV-4                    0.557793  0.565254\n",
       "HHV-5                    0.562552  0.600335\n",
       "HHV-6                    0.549949  0.542321\n",
       "HHV-8                    0.557691  0.575266\n",
       "HIV-1                    1.000000  0.590772\n",
       "HIV-2                    0.590772  1.000000\n",
       "HPIV-2                   0.515678  0.546993\n",
       "HPIV-3                   0.534535  0.536877\n",
       "HPV                      0.546476  0.545758\n",
       "HRV-A                    0.509770  0.521404\n",
       "HRV-B                    0.532117  0.541699\n",
       "HTLV-1                   0.525771  0.523823\n",
       "Hantaan orthohantavirus  0.511566  0.493828\n",
       "Hendra virus             0.544229  0.507421\n",
       "Human adenovirus         0.537429  0.559144\n",
       "Human polyomavirus       0.528119  0.518394\n",
       "Influenza A virus        0.497058  0.510926\n",
       "Influenza B virus        0.548284  0.551428\n",
       "Influenza C virus        0.525313  0.520549\n",
       "Lassa mammarenavirus     0.519091  0.510399\n",
       "MCV                      0.521206  0.578368\n",
       "MERS-CoV                 0.527246  0.516110\n",
       "Nipah virus              0.518055  0.515225\n",
       "RSV                      0.516068  0.515360\n",
       "SARS-CoV                 0.564588  0.545250\n",
       "SARS-CoV-2               0.545504  0.549069\n",
       "SARS-CoV-2: april        0.546236  0.548765\n",
       "SARS-CoV-2: feb          0.544464  0.550746\n",
       "SARS-CoV-2: june         0.546186  0.550547\n",
       "VV                       0.563069  0.558640\n",
       "Variola virus            0.576860  0.568388\n",
       "Zika virus               0.537206  0.519396"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "vir_sim_matrix[['HIV-1','HIV-2']]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "vir_sim_matrix.to_csv('data_processed/similarity_virus.csv')\n",
    "\n",
    "sio.savemat('data_processed/vir_sim_matrix.mat',{'Sv':vir_sim_matrix.values , 'vi_names':vir_sim_matrix.index.values})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th>DRUG</th>\n",
       "      <th>Abacavir</th>\n",
       "      <th>Acyclovir</th>\n",
       "      <th>Adefovir</th>\n",
       "      <th>Adefovir dipivoxil</th>\n",
       "      <th>Amantadine</th>\n",
       "      <th>Amprenavir</th>\n",
       "      <th>Asunaprevir</th>\n",
       "      <th>Atazanavir</th>\n",
       "      <th>Baloxavir marboxil</th>\n",
       "      <th>Beclabuvir</th>\n",
       "      <th>...</th>\n",
       "      <th>Valaciclovir</th>\n",
       "      <th>Valganciclovir</th>\n",
       "      <th>Valomaciclovir</th>\n",
       "      <th>Vaniprevir</th>\n",
       "      <th>Velpatasvir</th>\n",
       "      <th>Vidarabine</th>\n",
       "      <th>Voxilaprevir</th>\n",
       "      <th>Zalcitabine</th>\n",
       "      <th>Zanamivir</th>\n",
       "      <th>Zidovudine</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>VIRUS</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Chikungunya virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Coxsackievirus B5</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Ebola virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Enterovirus D</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Enterovirus J</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HBV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HCV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-1</th>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-2</th>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-3</th>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-4</th>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-5</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-6</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HHV-8</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HIV-1</th>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HIV-2</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPIV-2</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPIV-3</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HPV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HRV-A</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HRV-B</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>HTLV-1</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Hantaan orthohantavirus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Hendra virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Human adenovirus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Human polyomavirus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza A virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza B virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Influenza C virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Lassa mammarenavirus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MCV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>MERS-CoV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Nipah virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>RSV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: april</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: feb</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>SARS-CoV-2: june</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>VV</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Variola virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zika virus</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>42 rows × 121 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "DRUG                     Abacavir  Acyclovir  Adefovir  Adefovir dipivoxil  \\\n",
       "VIRUS                                                                        \n",
       "Chikungunya virus             0.0        0.0       0.0                 0.0   \n",
       "Coxsackievirus B5             0.0        0.0       0.0                 0.0   \n",
       "Ebola virus                   0.0        0.0       0.0                 0.0   \n",
       "Enterovirus D                 0.0        0.0       0.0                 0.0   \n",
       "Enterovirus J                 0.0        0.0       0.0                 0.0   \n",
       "HBV                           0.0        0.0       1.0                 1.0   \n",
       "HCV                           0.0        0.0       0.0                 0.0   \n",
       "HHV-1                         0.0        1.0       0.0                 0.0   \n",
       "HHV-2                         0.0        1.0       0.0                 0.0   \n",
       "HHV-3                         0.0        1.0       0.0                 0.0   \n",
       "HHV-4                         0.0        1.0       0.0                 0.0   \n",
       "HHV-5                         0.0        0.0       0.0                 0.0   \n",
       "HHV-6                         0.0        0.0       0.0                 0.0   \n",
       "HHV-8                         0.0        0.0       0.0                 0.0   \n",
       "HIV-1                         1.0        0.0       0.0                 0.0   \n",
       "HIV-2                         0.0        0.0       0.0                 0.0   \n",
       "HPIV-2                        0.0        0.0       0.0                 0.0   \n",
       "HPIV-3                        0.0        0.0       0.0                 0.0   \n",
       "HPV                           0.0        0.0       0.0                 0.0   \n",
       "HRV-A                         0.0        0.0       0.0                 0.0   \n",
       "HRV-B                         0.0        0.0       0.0                 0.0   \n",
       "HTLV-1                        0.0        0.0       0.0                 0.0   \n",
       "Hantaan orthohantavirus       0.0        0.0       0.0                 0.0   \n",
       "Hendra virus                  0.0        0.0       0.0                 0.0   \n",
       "Human adenovirus              0.0        0.0       0.0                 0.0   \n",
       "Human polyomavirus            0.0        0.0       0.0                 0.0   \n",
       "Influenza A virus             0.0        0.0       0.0                 0.0   \n",
       "Influenza B virus             0.0        0.0       0.0                 0.0   \n",
       "Influenza C virus             0.0        0.0       0.0                 0.0   \n",
       "Lassa mammarenavirus          0.0        0.0       0.0                 0.0   \n",
       "MCV                           0.0        0.0       0.0                 0.0   \n",
       "MERS-CoV                      0.0        0.0       0.0                 0.0   \n",
       "Nipah virus                   0.0        0.0       0.0                 0.0   \n",
       "RSV                           0.0        0.0       0.0                 0.0   \n",
       "SARS-CoV                      0.0        0.0       0.0                 0.0   \n",
       "SARS-CoV-2                    0.0        0.0       0.0                 0.0   \n",
       "SARS-CoV-2: april             0.0        0.0       0.0                 0.0   \n",
       "SARS-CoV-2: feb               0.0        0.0       0.0                 0.0   \n",
       "SARS-CoV-2: june              0.0        0.0       0.0                 0.0   \n",
       "VV                            0.0        0.0       0.0                 0.0   \n",
       "Variola virus                 0.0        0.0       0.0                 0.0   \n",
       "Zika virus                    0.0        0.0       0.0                 0.0   \n",
       "\n",
       "DRUG                     Amantadine  Amprenavir  Asunaprevir  Atazanavir  \\\n",
       "VIRUS                                                                      \n",
       "Chikungunya virus               0.0         0.0          0.0         0.0   \n",
       "Coxsackievirus B5               0.0         0.0          0.0         0.0   \n",
       "Ebola virus                     0.0         0.0          0.0         0.0   \n",
       "Enterovirus D                   0.0         0.0          0.0         0.0   \n",
       "Enterovirus J                   0.0         0.0          0.0         0.0   \n",
       "HBV                             0.0         0.0          0.0         0.0   \n",
       "HCV                             0.0         0.0          1.0         0.0   \n",
       "HHV-1                           0.0         0.0          0.0         0.0   \n",
       "HHV-2                           0.0         0.0          0.0         0.0   \n",
       "HHV-3                           0.0         0.0          0.0         0.0   \n",
       "HHV-4                           0.0         0.0          0.0         0.0   \n",
       "HHV-5                           0.0         0.0          0.0         0.0   \n",
       "HHV-6                           0.0         0.0          0.0         0.0   \n",
       "HHV-8                           0.0         0.0          0.0         0.0   \n",
       "HIV-1                           0.0         1.0          0.0         1.0   \n",
       "HIV-2                           0.0         0.0          0.0         0.0   \n",
       "HPIV-2                          0.0         0.0          0.0         0.0   \n",
       "HPIV-3                          0.0         0.0          0.0         0.0   \n",
       "HPV                             0.0         0.0          0.0         0.0   \n",
       "HRV-A                           0.0         0.0          0.0         0.0   \n",
       "HRV-B                           0.0         0.0          0.0         0.0   \n",
       "HTLV-1                          0.0         0.0          0.0         0.0   \n",
       "Hantaan orthohantavirus         0.0         0.0          0.0         0.0   \n",
       "Hendra virus                    0.0         0.0          0.0         0.0   \n",
       "Human adenovirus                0.0         0.0          0.0         0.0   \n",
       "Human polyomavirus              0.0         0.0          0.0         0.0   \n",
       "Influenza A virus               1.0         0.0          0.0         0.0   \n",
       "Influenza B virus               0.0         0.0          0.0         0.0   \n",
       "Influenza C virus               0.0         0.0          0.0         0.0   \n",
       "Lassa mammarenavirus            0.0         0.0          0.0         0.0   \n",
       "MCV                             0.0         0.0          0.0         0.0   \n",
       "MERS-CoV                        0.0         0.0          0.0         0.0   \n",
       "Nipah virus                     0.0         0.0          0.0         0.0   \n",
       "RSV                             0.0         0.0          0.0         0.0   \n",
       "SARS-CoV                        0.0         0.0          0.0         0.0   \n",
       "SARS-CoV-2                      0.0         0.0          0.0         0.0   \n",
       "SARS-CoV-2: april               0.0         0.0          0.0         0.0   \n",
       "SARS-CoV-2: feb                 0.0         0.0          0.0         0.0   \n",
       "SARS-CoV-2: june                0.0         0.0          0.0         0.0   \n",
       "VV                              0.0         0.0          0.0         0.0   \n",
       "Variola virus                   0.0         0.0          0.0         0.0   \n",
       "Zika virus                      0.0         0.0          0.0         0.0   \n",
       "\n",
       "DRUG                     Baloxavir marboxil  Beclabuvir     ...      \\\n",
       "VIRUS                                                       ...       \n",
       "Chikungunya virus                       0.0         0.0     ...       \n",
       "Coxsackievirus B5                       0.0         0.0     ...       \n",
       "Ebola virus                             0.0         0.0     ...       \n",
       "Enterovirus D                           0.0         0.0     ...       \n",
       "Enterovirus J                           0.0         0.0     ...       \n",
       "HBV                                     1.0         0.0     ...       \n",
       "HCV                                     0.0         1.0     ...       \n",
       "HHV-1                                   0.0         0.0     ...       \n",
       "HHV-2                                   0.0         0.0     ...       \n",
       "HHV-3                                   0.0         0.0     ...       \n",
       "HHV-4                                   0.0         0.0     ...       \n",
       "HHV-5                                   0.0         0.0     ...       \n",
       "HHV-6                                   0.0         0.0     ...       \n",
       "HHV-8                                   0.0         0.0     ...       \n",
       "HIV-1                                   0.0         0.0     ...       \n",
       "HIV-2                                   0.0         0.0     ...       \n",
       "HPIV-2                                  0.0         0.0     ...       \n",
       "HPIV-3                                  0.0         0.0     ...       \n",
       "HPV                                     0.0         0.0     ...       \n",
       "HRV-A                                   0.0         0.0     ...       \n",
       "HRV-B                                   0.0         0.0     ...       \n",
       "HTLV-1                                  0.0         0.0     ...       \n",
       "Hantaan orthohantavirus                 0.0         0.0     ...       \n",
       "Hendra virus                            0.0         0.0     ...       \n",
       "Human adenovirus                        0.0         0.0     ...       \n",
       "Human polyomavirus                      0.0         0.0     ...       \n",
       "Influenza A virus                       1.0         0.0     ...       \n",
       "Influenza B virus                       1.0         0.0     ...       \n",
       "Influenza C virus                       0.0         0.0     ...       \n",
       "Lassa mammarenavirus                    0.0         0.0     ...       \n",
       "MCV                                     0.0         0.0     ...       \n",
       "MERS-CoV                                0.0         0.0     ...       \n",
       "Nipah virus                             0.0         0.0     ...       \n",
       "RSV                                     0.0         0.0     ...       \n",
       "SARS-CoV                                0.0         0.0     ...       \n",
       "SARS-CoV-2                              0.0         0.0     ...       \n",
       "SARS-CoV-2: april                       0.0         0.0     ...       \n",
       "SARS-CoV-2: feb                         0.0         0.0     ...       \n",
       "SARS-CoV-2: june                        0.0         0.0     ...       \n",
       "VV                                      0.0         0.0     ...       \n",
       "Variola virus                           0.0         0.0     ...       \n",
       "Zika virus                              0.0         0.0     ...       \n",
       "\n",
       "DRUG                     Valaciclovir  Valganciclovir  Valomaciclovir  \\\n",
       "VIRUS                                                                   \n",
       "Chikungunya virus                 0.0             0.0             0.0   \n",
       "Coxsackievirus B5                 0.0             0.0             0.0   \n",
       "Ebola virus                       0.0             0.0             0.0   \n",
       "Enterovirus D                     0.0             0.0             0.0   \n",
       "Enterovirus J                     0.0             0.0             0.0   \n",
       "HBV                               0.0             0.0             0.0   \n",
       "HCV                               0.0             0.0             0.0   \n",
       "HHV-1                             1.0             0.0             0.0   \n",
       "HHV-2                             0.0             0.0             0.0   \n",
       "HHV-3                             1.0             0.0             1.0   \n",
       "HHV-4                             0.0             0.0             0.0   \n",
       "HHV-5                             0.0             1.0             0.0   \n",
       "HHV-6                             0.0             0.0             0.0   \n",
       "HHV-8                             0.0             0.0             0.0   \n",
       "HIV-1                             0.0             0.0             0.0   \n",
       "HIV-2                             0.0             0.0             0.0   \n",
       "HPIV-2                            0.0             0.0             0.0   \n",
       "HPIV-3                            0.0             0.0             0.0   \n",
       "HPV                               0.0             0.0             0.0   \n",
       "HRV-A                             0.0             0.0             0.0   \n",
       "HRV-B                             0.0             0.0             0.0   \n",
       "HTLV-1                            0.0             0.0             0.0   \n",
       "Hantaan orthohantavirus           0.0             0.0             0.0   \n",
       "Hendra virus                      0.0             0.0             0.0   \n",
       "Human adenovirus                  0.0             0.0             0.0   \n",
       "Human polyomavirus                0.0             0.0             0.0   \n",
       "Influenza A virus                 0.0             0.0             0.0   \n",
       "Influenza B virus                 0.0             0.0             0.0   \n",
       "Influenza C virus                 0.0             0.0             0.0   \n",
       "Lassa mammarenavirus              0.0             0.0             0.0   \n",
       "MCV                               0.0             0.0             0.0   \n",
       "MERS-CoV                          0.0             0.0             0.0   \n",
       "Nipah virus                       0.0             0.0             0.0   \n",
       "RSV                               0.0             0.0             0.0   \n",
       "SARS-CoV                          0.0             0.0             0.0   \n",
       "SARS-CoV-2                        0.0             0.0             0.0   \n",
       "SARS-CoV-2: april                 0.0             0.0             0.0   \n",
       "SARS-CoV-2: feb                   0.0             0.0             0.0   \n",
       "SARS-CoV-2: june                  0.0             0.0             0.0   \n",
       "VV                                0.0             0.0             0.0   \n",
       "Variola virus                     0.0             0.0             0.0   \n",
       "Zika virus                        0.0             0.0             0.0   \n",
       "\n",
       "DRUG                     Vaniprevir  Velpatasvir  Vidarabine  Voxilaprevir  \\\n",
       "VIRUS                                                                        \n",
       "Chikungunya virus               0.0          0.0         0.0           0.0   \n",
       "Coxsackievirus B5               0.0          0.0         0.0           0.0   \n",
       "Ebola virus                     0.0          0.0         0.0           0.0   \n",
       "Enterovirus D                   0.0          0.0         0.0           0.0   \n",
       "Enterovirus J                   0.0          0.0         0.0           0.0   \n",
       "HBV                             0.0          0.0         0.0           0.0   \n",
       "HCV                             1.0          1.0         0.0           1.0   \n",
       "HHV-1                           0.0          0.0         1.0           0.0   \n",
       "HHV-2                           0.0          0.0         1.0           0.0   \n",
       "HHV-3                           0.0          0.0         1.0           0.0   \n",
       "HHV-4                           0.0          0.0         1.0           0.0   \n",
       "HHV-5                           0.0          0.0         0.0           0.0   \n",
       "HHV-6                           0.0          0.0         0.0           0.0   \n",
       "HHV-8                           0.0          0.0         0.0           0.0   \n",
       "HIV-1                           0.0          0.0         0.0           0.0   \n",
       "HIV-2                           0.0          0.0         0.0           0.0   \n",
       "HPIV-2                          0.0          0.0         0.0           0.0   \n",
       "HPIV-3                          0.0          0.0         0.0           0.0   \n",
       "HPV                             0.0          0.0         0.0           0.0   \n",
       "HRV-A                           0.0          0.0         0.0           0.0   \n",
       "HRV-B                           0.0          0.0         0.0           0.0   \n",
       "HTLV-1                          0.0          0.0         0.0           0.0   \n",
       "Hantaan orthohantavirus         0.0          0.0         0.0           0.0   \n",
       "Hendra virus                    0.0          0.0         0.0           0.0   \n",
       "Human adenovirus                0.0          0.0         0.0           0.0   \n",
       "Human polyomavirus              0.0          0.0         0.0           0.0   \n",
       "Influenza A virus               0.0          0.0         0.0           0.0   \n",
       "Influenza B virus               0.0          0.0         0.0           0.0   \n",
       "Influenza C virus               0.0          0.0         0.0           0.0   \n",
       "Lassa mammarenavirus            0.0          0.0         0.0           0.0   \n",
       "MCV                             0.0          0.0         0.0           0.0   \n",
       "MERS-CoV                        0.0          0.0         0.0           0.0   \n",
       "Nipah virus                     0.0          0.0         0.0           0.0   \n",
       "RSV                             0.0          0.0         0.0           0.0   \n",
       "SARS-CoV                        0.0          0.0         0.0           0.0   \n",
       "SARS-CoV-2                      0.0          0.0         0.0           0.0   \n",
       "SARS-CoV-2: april               0.0          0.0         0.0           0.0   \n",
       "SARS-CoV-2: feb                 0.0          0.0         0.0           0.0   \n",
       "SARS-CoV-2: june                0.0          0.0         0.0           0.0   \n",
       "VV                              0.0          0.0         0.0           0.0   \n",
       "Variola virus                   0.0          0.0         0.0           0.0   \n",
       "Zika virus                      0.0          0.0         0.0           0.0   \n",
       "\n",
       "DRUG                     Zalcitabine  Zanamivir  Zidovudine  \n",
       "VIRUS                                                        \n",
       "Chikungunya virus                0.0        0.0         0.0  \n",
       "Coxsackievirus B5                0.0        0.0         0.0  \n",
       "Ebola virus                      0.0        0.0         0.0  \n",
       "Enterovirus D                    0.0        0.0         0.0  \n",
       "Enterovirus J                    0.0        0.0         0.0  \n",
       "HBV                              0.0        0.0         0.0  \n",
       "HCV                              0.0        0.0         0.0  \n",
       "HHV-1                            0.0        0.0         0.0  \n",
       "HHV-2                            0.0        0.0         0.0  \n",
       "HHV-3                            0.0        0.0         0.0  \n",
       "HHV-4                            0.0        0.0         0.0  \n",
       "HHV-5                            0.0        0.0         0.0  \n",
       "HHV-6                            0.0        0.0         0.0  \n",
       "HHV-8                            0.0        0.0         0.0  \n",
       "HIV-1                            1.0        0.0         1.0  \n",
       "HIV-2                            0.0        0.0         0.0  \n",
       "HPIV-2                           0.0        0.0         0.0  \n",
       "HPIV-3                           0.0        1.0         0.0  \n",
       "HPV                              0.0        0.0         0.0  \n",
       "HRV-A                            0.0        0.0         0.0  \n",
       "HRV-B                            0.0        0.0         0.0  \n",
       "HTLV-1                           0.0        0.0         0.0  \n",
       "Hantaan orthohantavirus          0.0        0.0         0.0  \n",
       "Hendra virus                     0.0        0.0         0.0  \n",
       "Human adenovirus                 0.0        0.0         0.0  \n",
       "Human polyomavirus               0.0        0.0         0.0  \n",
       "Influenza A virus                0.0        1.0         0.0  \n",
       "Influenza B virus                0.0        1.0         0.0  \n",
       "Influenza C virus                0.0        0.0         0.0  \n",
       "Lassa mammarenavirus             0.0        0.0         0.0  \n",
       "MCV                              0.0        0.0         0.0  \n",
       "MERS-CoV                         0.0        0.0         0.0  \n",
       "Nipah virus                      0.0        0.0         0.0  \n",
       "RSV                              0.0        0.0         0.0  \n",
       "SARS-CoV                         0.0        0.0         0.0  \n",
       "SARS-CoV-2                       0.0        0.0         0.0  \n",
       "SARS-CoV-2: april                0.0        0.0         0.0  \n",
       "SARS-CoV-2: feb                  0.0        0.0         0.0  \n",
       "SARS-CoV-2: june                 0.0        0.0         0.0  \n",
       "VV                               0.0        0.0         0.0  \n",
       "Variola virus                    0.0        0.0         0.0  \n",
       "Zika virus                       0.0        0.0         0.0  \n",
       "\n",
       "[42 rows x 121 columns]"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "vi_dr_matrix"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [],
   "source": [
    "sio.savemat('data_processed/virus_drug_association_withcv.mat',{'mat':vi_dr_matrix.values , 'vi':vi_dr_matrix.index.values, 'dr':vi_dr_matrix.columns.values})\n",
    "sio.savemat('data_processed/vir_sim_matrix_withcv.mat',{'Sv':vir_sim_matrix.values , 'vi_names':vir_sim_matrix.index.values})\n",
    "sio.savemat('data_processed/drug_sim_matrix_withcv.mat',{'Sd':drug_sim_matrix.values , 'dr_names':drug_sim_matrix.index.values})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [],
   "source": [
    "#REMOVE SARS-CoV-2 \n",
    "vi_dr_matrix=vi_dr_matrix.drop(['SARS-CoV-2','SARS-CoV-2: feb', 'SARS-CoV-2: april', 'SARS-CoV-2: june'])\n",
    "vi_dr_matrix=vi_dr_matrix.drop(columns=['Hydroxychloroquine', 'Carmofur'])\n",
    "\n",
    "vir_sim_matrix=vir_sim_matrix.drop(['SARS-CoV-2','SARS-CoV-2: feb', 'SARS-CoV-2: april', 'SARS-CoV-2: june'])\n",
    "vir_sim_matrix=vir_sim_matrix.drop(columns=['SARS-CoV-2','SARS-CoV-2: feb', 'SARS-CoV-2: april', 'SARS-CoV-2: june'])\n",
    "\n",
    "drug_sim_matrix=drug_sim_matrix.drop(columns=['Hydroxychloroquine', 'Carmofur'])\n",
    "drug_sim_matrix=drug_sim_matrix.drop(['Hydroxychloroquine', 'Carmofur'])\n",
    "\n",
    "sio.savemat('data_processed/virus_drug_association.mat',{'mat':vi_dr_matrix.values , 'vi':vi_dr_matrix.index.values, 'dr':vi_dr_matrix.columns.values})\n",
    "sio.savemat('data_processed/vir_sim_matrix.mat',{'Sv':vir_sim_matrix.values , 'vi_names':vir_sim_matrix.index.values})\n",
    "sio.savemat('data_processed/drug_sim_matrix.mat',{'Sd':drug_sim_matrix.values , 'dr_names':drug_sim_matrix.index.values})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
